How do I convert dates in Excel?

L

Lori

If the date is in A1 try:

=--TEXT(LEFT(A1,14),"0000-00-00 00\:00\:00")

and format the result in mm/dd/yyyy date format.
 
B

Bob Phillips

=DATE(LEFT(A21,4),MID(A21,5,2),MID(A21,7,2))

and format to the required date format.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
G

Guest

u could try using activecell.value=format(activecell.value,mm/dd/yyyy)
or as ur requirement is the normal date format u could just save the value
to a variable declared as date and store it again in the destination cell
regards
nc
 

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

Convert dates stored as text 2
Date format troubles 5
Date Formats 1
date 1
Date Conversion 4
reformat dates to yyyy/mm/dd 5
htm date & time format 11
date query 2

Top