I am downloading information from a database into XLSX. The source data has date / time fields. Some of the source data reads 12/31/13 11:59 PM.
My end goal is for Excel to show 12/31/13 in those fields.
When I download it, the date / time column formats itself as [$-409]mmm d, yyyy h:mm AM/PM.
The date / time values is no longer 12/31/13 11:59 PM. Something changed...
If I look at the spreadsheet the dates now read Jan 1, 2014 12:00 AM. If I apply any formula or format change to the cells, it always reads 1/1/14, never 12/31/13.
But if I select one of those cells, in the formula bar it actually reads 12/31/2013 12:00:00 AM. (First question: why is this happening?)
Now if my cursor is blinking in the cell and I hit the Enter key, the value in the spreadsheet changes to read Dec 31, 2013 12:00 AM.
NOW if I reformat the cell, it will render as 12/31/13. (Second question: how can I make the cells render correctly as 12/31/13 without having to enter my cursor in thousands of cells and hit the Enter key? And I do not want to use VBA to do it.)
Thanks -- Chris
Bookmarks