Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9685

Google Sheets to PRESENT an ISO8601 string as localized date?

$
0
0

In Google Sheets, is there a way to have a cell display its value as a localized date (and time) but actually still have and accept its value as an ISO8601 date string?

The use case is that I have data exported from a database that has ISO8601 timestamps (as strings in a .CSV file) and I’d like them to show up as readable dates and times while still making it possible to just paste more exported timestamp data later in those cells.

I’ve searched for a solution and have found other questions about formatting dates (e.g."Convert columns of ISO 8601 strings to dates in Google Sheets" and"How can I change Google Spreadsheets to have iso 8601 dates as default?") but they're asking for different things.

I'm not looking for a way to parse an ISO date string to a readable string in another cell etc. but a way to present an underlying date in a localized way, hopefully preserving that presentation format when a new date string is pasted into the cell later.

I know one option could be to have this exported CSV data on a different sheet and collect it from there to another "presentation" sheet in a nice, localized way but I'm not 100% sure it'd work, and I'd like to avoid that to keep things simpler anyway if possible.

Based on what I've found so far this may not be possible in Sheets at all but I'd love to be wrong.


Viewing all articles
Browse latest Browse all 9685

Trending Articles



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