PC Review


Reply
Thread Tools Rate Thread

American date conversion Macro

 
 
=?Utf-8?B?QW50?=
Guest
Posts: n/a
 
      22nd Nov 2006
Does anyone have some simple code (not formula) that I can use to convert
American date format to English format. eg. 12/25/06 to 25/12/06. It will
have to take into account single and double digits. I then want to be able to
attach the macro to a button for quick conversion.

Cheers,
Ant.

 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      22nd Nov 2006
Are the values actually dates or text ?
If dates, record a macro whilst you perform the change in
Format>Cells>Number.
If on XL2002 and later, maybe the date formats marked "*" will be useful. I
understand they do not change with differences in Windows Regional Settings.

If text, look into DateSerial and build your new date from the old.

Not sure what you mean by "take into account single and double digits".

NickHK

"Ant" <(E-Mail Removed)> wrote in message
news:0E815652-F49C-472D-B631-(E-Mail Removed)...
> Does anyone have some simple code (not formula) that I can use to convert
> American date format to English format. eg. 12/25/06 to 25/12/06. It will
> have to take into account single and double digits. I then want to be able

to
> attach the macro to a button for quick conversion.
>
> Cheers,
> Ant.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
American date conversion macro =?Utf-8?B?QW50?= Microsoft Excel Misc 7 15th Jul 2009 12:38 AM
Convert American Date to Australian Date format Noemi Microsoft Excel Programming 4 3rd Dec 2008 07:23 AM
British date instead of american Gina Microsoft Dot NET Framework 1 7th Dec 2006 05:40 PM
date is american =?Utf-8?B?RGF0YWJhc2UgVXNlcg==?= Microsoft Access 1 14th Nov 2005 02:54 PM
HElp:-American? Date conversion Gerry Microsoft Excel Worksheet Functions 8 20th Aug 2004 02:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:21 AM.