I have a CSV file with dates in the following format:

2012-06-20T00:00:00+00:00

Is it possible to parse a date or date and time in this format? The goal is to turn it into a date and time that Google Spreadsheet understands.

The format is YYYY-MM-DDTHH:MM:SS.

  • 1
    The quoted date notation has this format: YYYY-MM-DDThh:mm:ssTZD, yet your last example has YYYY-MM-DDThh:mm:ss. Which should we use? – Jacob Jan Tuinstra Jul 14 '14 at 20:35
  • YYYY-MM-DDThh:mm:ss. I don't care about the time zone. – B Seven Jul 15 '14 at 0:37

Maybe:

=left(A1,10)+mid(A1,12,8)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.