On the fly converting: 10/09/2006 to 2006-09-01
i need to take into consideration padding "0"
this is what i have, is there a smarter way?
function GDSdates(reform)
Dim reform1, reform2, reform3
reform1 = right("0" & month(reform),2)
reform2 = right("0" & day(reform),2)
reform3 = year(reform) & "-" & reform1 & "-" & reform2
GDSdates= reform3
end function
i need to take into consideration padding "0"
this is what i have, is there a smarter way?
function GDSdates(reform)
Dim reform1, reform2, reform3
reform1 = right("0" & month(reform),2)
reform2 = right("0" & day(reform),2)
reform3 = year(reform) & "-" & reform1 & "-" & reform2
GDSdates= reform3
end function