help needed in converting date format

K

kiwis

Hi

i have date in dd/mm/yyyy format, i need to find the age of the
product but
i think i need to convert the date to mm/dd/yyyy format 1st before
using the formula
to find the age of the product.

sample data final result
column b column c
28/12/2003 12/28/2003
2/5/2001 5/2/2001

i need to write a macro to change column b to the output shown in
column c.

How do i go abt doing writing this ?

ANy ideas or sample code to share?

Thank you

rgds
kiwis
 
G

Guest

Sub formatdates()
ActiveSheet.Select
Columns("B:B").Select
Selection.NumberFormat = "mm/dd/yyyy"
Range("B1").Select
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

date out of control 6
date format 3
how change date format in range? 1
Date format 7
date format in excel 2
converting a cell text to date 1
rationalizing date format in column 1
Issue in date formats 1

Top