C
carltonb
I have a database that provides me a date in text format.
ie: 06 APR 1895
07 NOV 2004 etc.
I need to convert it to read
04061895 and 11072004 respectively
I wrote a formula like this =TEXT(TRIM(A22),"mmddyyyy"), but it did no
convert the pre 1900 dates. I then wrote the following,
=LEFT(TRIM(A1),2)&TEXT(MONTH("11-"&MID(TRIM(A1),4,3)),"00")&RIGHT(TRIM(A1),4
but it gave me dates like 06041895 and 07112004 - DDMMYYYY
How do I change it to read MMDDYYYY. I tried formatting etc but no go.
Any help would be appreciated.
Carlton
ie: 06 APR 1895
07 NOV 2004 etc.
I need to convert it to read
04061895 and 11072004 respectively
I wrote a formula like this =TEXT(TRIM(A22),"mmddyyyy"), but it did no
convert the pre 1900 dates. I then wrote the following,
=LEFT(TRIM(A1),2)&TEXT(MONTH("11-"&MID(TRIM(A1),4,3)),"00")&RIGHT(TRIM(A1),4
but it gave me dates like 06041895 and 07112004 - DDMMYYYY
How do I change it to read MMDDYYYY. I tried formatting etc but no go.
Any help would be appreciated.
Carlton