Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88854

Excel - convert ISO8601 date ending in Z into format suitable for entry into Postgres field with type 'timestamp with time zone'

$
0
0

I have a CSV file that I'm opening in Excel. It has dates in this format:

2019-09-15T00:11:57.4030000Z

I want this:

2019-09-15 00:11:57.403+00

I think I may be able to use the "format cells > custom" option in Excel, but what would do I need to specify as the 'type' for the format? I tried using this to get most of it, but it doesnt' work:

yyyy-mm-dd hh:mm:ss.000

And when I try to apply some of the pre-existing types built into Excel, they don't seem to change the date format - it's as if the original date format isn't being recognised as valid.


Viewing all articles
Browse latest Browse all 88854


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>