Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert timestamp to date in Google Sheets

How can I convert 2020-12-14T18:24:27.000Z to 12/14/2020 in Google Sheets?

The Format > Number > Date command does not change the timestamp to a date.

The conversion can occcur in-place or a separate column.

like image 870
Dru Avatar asked Oct 24 '25 04:10

Dru


1 Answers

You can extract the date portion of the timestamp using MID() then use DATEVALUE() to convert it to date format.

=DATEVALUE(MID(A1,1,10))

Then use Format > Number > Date command.

enter image description here

References:

MID()

DATEVALUE()

like image 61
CMB Avatar answered Oct 25 '25 21:10

CMB



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!