[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sString = Date(hBlah) returns 11pm


>
> If you know the format of the date sString gets and it doesn't change (ie
> you're not changing locales) then you can also do:
>
> sString = Replace(str(Date(Now)),"  00:00:00","")
>
> After that: Print sString
>
> will only print the date.
>

This does not work if the application is running on a laptop and you travel
or you simply live in a country that uses daylight "saving" time.
IE, no need to change locales to mess it up.

Jussi

Follow-Ups:
Re: sString = Date(hBlah) returns 11pmGianluigi <gradobag@xxxxxxxxxxx>
References:
sString = Date(hBlah) returns 11pmBruce Steers <bsteers4@xxxxxxxxx>
Re: sString = Date(hBlah) returns 11pmBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: sString = Date(hBlah) returns 11pmBruce Steers <bsteers4@xxxxxxxxx>
Re: sString = Date(hBlah) returns 11pmDimitris Anogiatis <dosida@xxxxxxxxx>