I have seen that excel identifies dates with specific serial numbers. For example :
09/07/2018 = 43290
10/07/2018 = 43291
I know that we use the DATEVALUE
, VALUE
and the TEXT
functions to convert between these types.
But what is the logic behind this conversion? why 43290
for 09/07/2018
?
Also , if I have a list of these dates in the number format in a dataframe
(Python), how can I convert this number to the date format?
Similarly with time, I see decimal values in place of a regular time format. What is the logic behind these time conversions?
The following question that has been given in the comments is informative, but does not answer my question of the logic behind the conversion between Date and Text format : convert numerical representation of date (excel format) to python date and time, then split them into two seperate dataframe columns in pandas