PC Review


Reply
Thread Tools Rate Thread

Convert 24/03/2010 date into 03/24/2010 date format

 
 
Nitesh
Guest
Posts: n/a
 
      5th Jun 2010
Hi ,

I’m using Ms Excel 2003 and in my excel sheet there is a column in which
dates are entered as DD/MM/YYYY (e.g. 24/03/2010 as a text) format and I
wanted to convert it into MM/DD/YYYY (e.g. 03/24/2010).

Can excel programming is required to convert such date or is there any excel
function.

Please suggest.

--
------------------------------
Thanks
Nitesh
------------------------------

 
Reply With Quote
 
 
 
 
OssieMac
Guest
Posts: n/a
 
      5th Jun 2010
Hi Nitesh,

Because you say the dates are entered as text you can use Text to Columns to
change it to a real date and it should format the cells as dates.

Select the column with the text dates.
Select menu item Data -> Text to columns -> Fixed width -> Next -> Next-> Date
At the Date dropdown select the date format that it is in currently ie. D/M/Y
Click finish.

The date will now be in your regional date format and the cell formatted as
Date. Now you can re-format the date using Number format to any format you
want.


--
Regards,

OssieMac


"Nitesh" wrote:

> Hi ,
>
> I’m using Ms Excel 2003 and in my excel sheet there is a column in which
> dates are entered as DD/MM/YYYY (e.g. 24/03/2010 as a text) format and I
> wanted to convert it into MM/DD/YYYY (e.g. 03/24/2010).
>
> Can excel programming is required to convert such date or is there any excel
> function.
>
> Please suggest.
>
> --
> ------------------------------
> Thanks
> Nitesh
> ------------------------------
>

 
Reply With Quote
 
Javed
Guest
Posts: n/a
 
      5th Jun 2010
On Jun 5, 9:34*am, Nitesh <Nit...@discussions.microsoft.com> wrote:
> Hi ,
>
> I’m using Ms Excel 2003 and in my excel sheet there is a column in which
> dates are entered as DD/MM/YYYY (e.g. 24/03/2010 as a text) format and I
> wanted to convert it into MM/DD/YYYY (e.g. 03/24/2010).
>
> Can excel programming is required to convert such date or is there any excel
> function.
>
> Please suggest.
>
> --
> ------------------------------
> Thanks
> Nitesh
> ------------------------------


You can use following code.

Just paste the following in any standard module.Call like any other
function from Function Wizard (It will be in Usedr Defined Category)

Function DateConvert(dte As String, Optional sep As String = ".")
Dim fstpos As Integer, sndpos As Integer
fstpos = InStr(1, dte, sep, vbTextCompare)
sndpos = InStr(1 + fstpos, dte, sep, vbTextCompare)
DateConvert = DateSerial(Mid(dte, sndpos + 1, 50) _
, Mid(dte, fstpos + 1, sndpos - fstpos - 1) _
, Left(dte, fstpos - 1))
End Function


You may use excel function Mid,Date,Right,Left but that will be a
large one.
 
Reply With Quote
 
Modeste
Guest
Posts: n/a
 
      5th Jun 2010
Bonsour®

"Nitesh" a écrit > I’m using Ms Excel 2003 and in my excel sheet there is a
column in which
> dates are entered as DD/MM/YYYY (e.g. 24/03/2010 as a text) format and I
> wanted to convert it into MM/DD/YYYY (e.g. 03/24/2010).


select the column with dates
menu > datas > convert
at step 3
select date format DMY
OK

 
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
How to Convert 24/03/2010 as text into 03/24/2010 date format Nitesh Microsoft Excel Worksheet Functions 2 5th Jun 2010 10:34 AM
date format...3.1.2010 backmara Microsoft Excel Programming 1 23rd Mar 2010 11:57 AM
how can i get the date & time format 2010/02/17 12:05 in excel NarenSelva Microsoft Excel Misc 2 2nd Mar 2010 08:56 AM
Format a Date Text Box As 2010-02-28 GeyikBaba Microsoft Access Forms 3 20th Feb 2010 10:14 PM
Convert date string (ie: 1/3/2010) to seriel Steve P Microsoft Access VBA Modules 2 14th Jan 2010 08:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:34 AM.