Displaying date in correct International format

Bowdlerb

New Member
Joined
Mar 6, 2002
Messages
11
I am using Excel 2002 - I have received a worksheet with various dates keyed in by a colleague in USA. For example one of the dates is shown as "12/10/02" which should be viewed at "December 10th, 2002". However when I format the date cell to view the full month it shows as "October 12th, 2002".
Can anyone tell me a way to make the full date format show as its original intented date?

Barrie Bowdler :confused:
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I had a similar problem dealing with the US and came to the conclusion that the Regional Settings dictate how the dates are shown, however this does mean that if you enter a date in the UK the date is "converted" over to US format when opened there and visa versa, so the date you refer to should have represented October 12th and not Dec 10th
 
Upvote 0
If you format the date as General what does it show. 12th October 2002 is 37541, 10th December 2002 is 37600. Dates are only numbers, so there can be no ambiguity - except in VBA which does have problems with US/UK dates.
 
Upvote 0
I have the same problem as gjadcock. I have entered 10/12/02, which converts to 37600, ie. the US format. This happens even though I have set the regional settings to UK.
Has anyone got any suggestions for solving this strange problem?


Thanks,
Richard
 
Upvote 0
If you have entered 10/12/02 in your cell and it converts (when viewed as general) to 37600 then Excel is interpreting the date as dd/mm/yy (i.e. 10 Dec 2002), which is UK format.

Did you want it to be 12 October 2002 ?
 
Upvote 0
Sorry I am getting myself confused. I entered 12/10/02, and it converted to 37600.
I have identified what has caused the problem though, but don't know how to solve it. I added the following code to capitalise the data in my workbook, and removing it leads to 12/10/02 becoming 37541, ie. UK format. How can I continue to have this format, and use the following code:


Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As

Excel.Range)
Dim c As Range

Application.EnableEvents = False
For Each c In Target.Cells
c = UCase(c.Text)
Next
Application.EnableEvents = True
End Sub


If possible is there a date format function I can add to the code?


Thanks a lot,
Richard
 
Upvote 0

Forum statistics

Threads
1,213,521
Messages
6,114,109
Members
448,548
Latest member
harryls

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top