I have a date type field that is 23/11/2007 14:30:45 and I want to
convert to 2007-11-23 14:30:45. How can I do that?
I used
Format(TTime, "yyyy-mm-dd") where TTime is the variable that stores my
data.. but this only give me the first part.. the time dissapeared..
Can someone help me?
Cheers!
Claudi
Ralph - 23 Nov 2007 17:45 GMT
> I have a date type field that is 23/11/2007 14:30:45 and I want to
> convert to 2007-11-23 14:30:45. How can I do that?
[quoted text clipped - 4 lines]
>
> Can someone help me?
Displays time with leading zeros: "2007-01-23 14:05:02"
Format(TTime, "yyyy-mm-dd Hh:Nn:Ss")
Lookup the article: "User-Defined Date/Time Formats (Format Function)" on
the MSDN help CD.
-ralph