Excel date error when the day of month is below 24

%3CLINGO-SUB%20id%3D%22lingo-sub-2274008%22%20slang%3D%22en-US%22%3EExcel%20date%20error%20when%20the%20day%20of%20month%20is%20below%2024%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2274008%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20been%20importing%20transaction%20data%20from%20my%20bank%20account%20for%20years%20in%20csv%20files%2C%20but%20now%20with%20Office%202019%20some%20of%20the%20dates%20are%20wrong.%20There%20are%20two%20things%20I%20find%20odd.%3C%2FP%3E%3CP%3EFirst%20is%20that%20whenever%20the%20day%20of%20month%20number%20is%2024%20or%20greater%2C%20the%20date%20comes%20out%20correctly.%20When%20it%20is%2023%20or%20smaller%2C%20it%20is%20shown%20as%20decimal%20number%20below%201.%20For%20example%20April%206th%202021%20(06.04.2021)%20results%20to%20%220%2C276168981481481%22%20shown%20in%20the%20cell.%20Because%20this%20is%20below%201%2C%20should%20I%20change%20cell%20format%20to%20date%2C%20it%20will%20show%2001.01.1900.%20The%20other%20odd%20thing%20is%20that%20when%20I%20open%20the%20same%20csv%20file%20with%20MSWord%2C%20it'll%20show%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20-%20When%20I%20have%20corrected%20the%20dates%20to%20show%20correctly%20in%20Notepad%20and%20then%20I%20copy-paste%20them%20from%20Notepad%20to%20Excel%2C%20Excel%20will%20still%20show%20dates%20again%20incorrectly.%20I'd%20like%20to%20understand%20why%20this%20is%20happening%20and%20how%20to%20fix%20it.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20not%20a%20total%20showstopper%2C%20as%20I%20can%20use%20%22Get%20data%22%20function%2C%20which%20seems%20to%20be%20able%20to%20handle%20this%2C%20but%20this%20is%20more%20work%20and%20I'd%20like%20to%20trust%20Excel%20to%20always%20do%20a%20correct%20job.%20I%20attach%20a%20sample%20of%20some%20wrong%20dates%20and%20what%20they%20should%20be.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2274008%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

I've been importing transaction data from my bank account for years in csv files, but now with Office 2019 some of the dates are wrong. There are two things I find odd.

First is that whenever the day of month number is 24 or greater, the date comes out correctly. When it is 23 or smaller, it is shown as decimal number below 1. For example April 6th 2021 (06.04.2021) results to "0,276168981481481" shown in the cell. Because this is below 1, should I change cell format to date, it will show 01.01.1900. The other odd thing is that when I open the same csv file with MSWord, it'll show correctly.

 

Also - When I have corrected the dates to show correctly in Notepad and then I copy-paste them from Notepad to Excel, Excel will still show dates again incorrectly. I'd like to understand why this is happening and how to fix it. 

 

This is not a total showstopper, as I can use "Get data" function, which seems to be able to handle this, but this is more work and I'd like to trust Excel to always do a correct job. I attach a sample of some wrong dates and what they should be.

2 Replies
Solved. I'm blaming myself for not having checked the obvious at the start, but somehow the fact that part of the dates were correct, I made wrong assumptions at the start.

In case someone bumps into a similar thing, check your "Regional format".
Mine was initially "English (Finland)", because I wish to have an English UI, but use local formats.
In the "Time & Language - Region" I had only English formats avalable. So I had to go tothe "Clock and Region - Region/Change date, time or number formats". There you wil find all supported formats.

I am still intrigued to know what caused the error, but glad to have got rid of it.

@Jukka_Lehtis 

What is the default time format on your computer? It looks like Excel interprets the value 23.3.2021 as 23 hours, 3 minutes and 2021 seconds on your computer. This is equivalent to 23:36:41. Excel stores this time as the number 0,98380787, which is what you see.