Excel 2007
I have this code:
Code:
Dim dtMonthEnd as Date
dtMonthEnd = Format(#4/30/11#, "mm/dd/yy")
The result I'm getting is Month end = 4/30/11
I'm moving this to a mainframe file and need 04/30/11. The leading zero is important on the mainframe.
Anyone know how I can get it formatted as needed?
Randy