Dates converting to US format

theFISman

New Member
Joined
Jun 21, 2010
Messages
17
Hi,

I have a date format/time of '15/06/200919:17:15' extracted from another system. I usually drop the time using the following macro (which has worked in the past):

x = 1
Do Until x = 150
x = x + 1
Dim chngdte1
Range("p" & x).Select
chngdte1 = ActiveCell.FormulaR1C1
chngdte1 = Mid(chngdte1, 1, 10)
Range("p" & x).Select
ActiveCell.FormulaR1C1 = chngdte1
Loop

But for some reason the dates now change from UK to US format? Any ideas?

Also I would actually like to automatically put a space in between the date and time (excel will then accept it as a date format) using a macro...any help her also appreciated :)

Many thanks, Steve
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,223,246
Messages
6,170,996
Members
452,373
Latest member
TimReeks

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