Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Extracting date and time from cell in google sheets

I’m trying to extract the time and date from the following cell in google sheets: 2022-02-21T05:14:05.556Z

I’ve managed to extract the time with the formula: =TIMEVALUE(REGEXEXTRACT(D2,"\d+:\d+:\d+"))

But I cannot find a formula to also get the correct date out of it.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Anyone has an idea how to do it? I’d preferably extract both date & time at the same time!

Cheers, Hayo

>Solution :

try:

=SPLIT(D2; "TZ")

for array:

enter image description here

sidenote: columns are formatted as Date and Time

for forced formatting use:

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading