Store the format of a date
Posted by Rob A on October 08, 2001 5:32 AM
I need to take a date in a certain format and store it in that same format so adding additional characters to the date doesn't revert it back to default style. e.g. I have dates in cells in the format yyyy/mm/dd. When looking at the cell it appears in that format. Excel seems to store it as dd/mm/yyyy so when i take another macro to add :"date", to it the date refers back to the dd/mm/yyyy format. So I have a date 2001/09/15 (yyyy/mm/dd) and I want to make it :"2001/09/15", but at the moment adding the formatting reverts the date to :"dd/mm/yyyy", any help would be most appreciated. Cheers