PDA

View Full Version : Solved: Date format



Klartigue
05-10-2012, 01:52 PM
Is there a macro code or formula that can format 5/14/2012 into yyyy-mm-dd? I have dates located in column H, starting in cell H2, and I would like all the dates to be formatted like yyyy-mm-dd?

Thanks!!

Paul_Hossler
05-10-2012, 02:29 PM
Did you try a custom number format of yyyy-mm-dd?

In VBA it'd be something like Columns("H:H").NUmberFormat = "yyyy-mm-dd"

Paul

Klartigue
05-10-2012, 02:38 PM
that VBA code works great, thanks!