Forum

Notifications
Clear all

Date format issue

6 Posts
4 Users
0 Reactions
92 Views
(@shardul-nikam)
Posts: 3
Active Member
Topic starter
 

Hello,

In my excel (2019), the natural date format seems to be mm/dd/yyyy. The data that I have should be dd/mm/yyyy. 

Example:

02/01/2005 Excel reads it as 01 February 2005 while I want it to be 02 January 2005.

I tried changing format by going to NUMBER ---> CUSTOM ----> dd/mm/yyyy. However, it returns the initial 02/01/2005 as 01/02/2005, thereby still reading as 01 February 2005. 

I have attached the complete dataset. 

If you look at the 84th row, it shows 12/1/2011 reading as December 1, 2011. 85th row is in the general format, 13-01-2011 as there is no 13th month. I need to convert them so that it reads as 12 January and 13 January respectively.

Thanks in advance.

 
Posted : 01/12/2020 6:39 am
(@questvba)
Posts: 125
Estimable Member
 

Hi, Shardul Nikam,
As you can see, the problem only occurs for the first 12 days of the month. This is normal because this is when there could be a doubt between day and month. Most of the time, this problem is related to regional parameters.
When does this problem occur? I think it is imported data? If so, the easiest way is to force the correct format beforehand.

BR,

 
Posted : 01/12/2020 7:05 am
(@shardul-nikam)
Posts: 3
Active Member
Topic starter
 

Yes, this is imported data. I did not understand how to correct it. Could you please share more?

 
Posted : 01/12/2020 9:27 am
(@rhysand)
Posts: 80
Trusted Member
 

Hello,

an error occurred when the date (formatting or other) was inserted in that sheet of your workbook, I can change and change the formatting in the entire column ("C"), but for excel (example of the range ("C85") where "the range value is (13-01-2011), 13 will be the day and 01 the month

I cannot automatically invert the entire column C, as there is no reference to the data provided (only that they are inserted), so it is not possible to distinguish the ranges with (01/13/2011) or (01/13/2011) right or wrong , I advise you to do it manually and change the formats

img1.JPGimg2.JPGimg3.JPGimg4.JPG

 

 

img1 is just your data

img2 is just your data (row 85)

img3 is my macro to convert the entire column to Long Date

img4  is my macro to update the entire column to (dd/mm/yyyy)

 

in the last case, insert an adjacent column, format that column to the desired date format, copy only the dates that are right, the wrong dates, manually insert in the new column, and delete the old column

 

Miguel,

 
Posted : 01/12/2020 12:13 pm
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Shardul,

Excel will display dates in whatever your regional settings define.  So if your regional settings use m/d/y then that is what you are going to see.

If you want to use d/m/y then you have to change your regional settings.

Phil

 
Posted : 01/12/2020 5:34 pm
(@shardul-nikam)
Posts: 3
Active Member
Topic starter
 

Thank you, Lionel, Miguel and Philip for answering.

 

I changed the regional settings from the control panel and got what I wanted. 

 
Posted : 02/12/2020 3:25 am
Share: