Skip to content

Reading a date #3115

Answered by MarkBaker
TonioIncredible asked this question in Q&A
Discussion options

You must be logged in to vote

I can see that I'm going to have to rewrite the documentation to be very explicit about how dates work in MS Excel; and explain how to read dates as well as write them. This article explains in more detail about dates in MS Excel.

TLDR: MS Excel maintains dates as a serialized timestamp, a numeric value that represents the number of days since a base start date of 1/1/1900 (or 1/1/1904 if the file was created using the Apple Mac version of Microsoft Office). This is similar to a unix timestamp, a numeric value representing a date.

If you get a value of "23/03/1970", then you're getting a string; just because it looks like a date to a human, it's still a string. if you're getting a value o…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by oleibman
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants