A
Andyza
The sUnixDate variable below contains a unix timestamp. I use the
VBScript DateAdd function to convert it to a date/time variable
whenever I want to display the date on my .asp pages.
sUnixDate = "1235999914"
sNewDate = DateAdd("s",sUnixDate,#1970/1/1#)
sNewDate now contains the date according to the regional settings on
the computer eg:
'3/2/2009 1:18:34'
or
'2009/03/02 01:18:34'
Is there a way to specify a format for the date that is independent of
the Regional Settings on the computer?
I want the date to always be returned and displayed in the yyyy/mm/dd
hh:mm:ss format.
Thanks.
VBScript DateAdd function to convert it to a date/time variable
whenever I want to display the date on my .asp pages.
sUnixDate = "1235999914"
sNewDate = DateAdd("s",sUnixDate,#1970/1/1#)
sNewDate now contains the date according to the regional settings on
the computer eg:
'3/2/2009 1:18:34'
or
'2009/03/02 01:18:34'
Is there a way to specify a format for the date that is independent of
the Regional Settings on the computer?
I want the date to always be returned and displayed in the yyyy/mm/dd
hh:mm:ss format.
Thanks.