converting dates

  • Thread starter Thread starter JT
  • Start date Start date
J

JT

I have a macro that is used by both the international and
domestic operations.

I could use some help with the code to convertthe European
dates 170604 to 06/17/04.

The cells are formatted as general, so I don't get the
correct date if I try just formatting the cells.

Thanks for the help.
 
Hi
try the following formula
=DATE("20" & RIGHT(A1,2),MID(A1,3,2),LEFT(A1,2))
 

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

Vba Date$ 1
Date formatting in VBA 1
Comparing dates 1
Windows 7 I need to convert date to text 3
Dates 2
Dates converted into text 5
Convert Date-as-Text 3
Why does ControlSource in Excel return a US-formatted date 1

Back
Top