G
Guest
Hello,
I receive a file which has the Date field in a number format as follows:
2032006 (3rd February 2006) or
12082005 (8th February 2005)
I currently use the following formulas to break these dates down and then
reformat them as dd/mm/yyyy
DAY: IIf((Len([DATE])=8), Mid([DATE],3,2), Mid([DATE],2,2))
MONTH: IIf((Len([DATE])=8), Left([DATE],2), Left([DATE],1))
YEAR: Right([DATE],4)
NEW_DATE: [DAY] & "/" & [MONTH] & "/" & [YEAR]
However while the new date field looks like a date, it is not formatted as
one and I am unable to run date and time calculations off it.
Please could you let me know how to change this format?
I receive a file which has the Date field in a number format as follows:
2032006 (3rd February 2006) or
12082005 (8th February 2005)
I currently use the following formulas to break these dates down and then
reformat them as dd/mm/yyyy
DAY: IIf((Len([DATE])=8), Mid([DATE],3,2), Mid([DATE],2,2))
MONTH: IIf((Len([DATE])=8), Left([DATE],2), Left([DATE],1))
YEAR: Right([DATE],4)
NEW_DATE: [DAY] & "/" & [MONTH] & "/" & [YEAR]
However while the new date field looks like a date, it is not formatted as
one and I am unable to run date and time calculations off it.
Please could you let me know how to change this format?