Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date column in export to spreadsheet
Message
From
30/06/2016 11:56:23
 
 
To
30/06/2016 11:28:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01637821
Message ID:
01637838
Views:
37
>Using LibreOffice and WPS Office, and not Excel, it now shows as a date, but the weird part is that if you enter the cell, which contains today's date, and just type in 070716, it produces a date of 8/10/2093, but if you enter 07/07/16, then you get the correct date.

{^2093-08-10} is the 70716th day of the series that started in {^1899-12-31} [could anyone validate this, please?]. In Excel, dates are a special representation of a number - almost nothing more than that. So, if you enter a number without a date format - for instance, 070716 - the number is represented and stored in its regular form, no matter the previous format of the cell (unless it is protected, of course).

For instance, insert 1 in a cell. Next, format it as a Date. It turns into {^1899-12-31}.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform