Hacker News new | past | comments | ask | show | jobs | submit login

Is that January 2, February 1, January 2002, or January 1902?



In Excel? It's January 2nd of the current year, which again is probably the most common use


In your copy of Excel it is January 2nd. In most other countries, it is February 1st.

But here's Excel's trick: you type in 01/02, Excel interprets that as January 2nd and switches it to the underlying OLE date format (some number in the 40000s). Ship that Excel file across the ocean were they would write Jan 1 as "02/01", and it shows them the date as "02/01." Excel uses your local date format preferences.

This is one reason why it is important for Excel to convert the raw input to another format. I'd probably prefer that it didn't touch it for CSV files, but I get it for .xlsx




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: