"Tobias Hinnerup" <hinnerup@nospamhinnerup.net> skrev i en meddelelse
news:akn4ft$2rai$1@news.cybercity.dk...
>
> "Chrisser" <cbj@egdatainform.dk> wrote in message
> news:akn3m8$ppb$1@sunsite.dk...
> >
> > Jeg plejer at bruge Now i stedet for date da jeg har læst mig til at de
> > andre dato-funktioner i VBScript returnerer US-English (mmddyyyy)format
> > uanset hvad LCID er sat til !!
>
> Spændende - har du et link?
>
> /Tobias
>
Nej, men jeg har fundet passagen omkring date-literals i min asp-bog
(Beginning Active Server Pages 3.0 fra Wrox side 945), du får den her:
"There are a number of ways to display and represent dates and times. This
includes date literals, which are valid date expression, enclosed in number
signs(#). You need to be careful when using date literals because VBScript
only lets you use the US-English date format, mm/dd/yyyy. This is true even
if a different locale is being used on the machine. This migt lead to
problems when trying to use date literals in other formats, because in most
cases the date will be accepted although converted to a different date.
#10/12/1997# will be interpreted as October 12, 1997, but you might in fact
want December 10, 1997, because your locale settings interprets dates as
dd/mm/yyyy. Date literals only accept the forward slash (/) as the date
separator."
I samme bog angående funktionen Now:
" Returns the system's current date and time."
Om Date:
" Returns a Variant subtype Date indicating the system's current date and
time."
Endvidere:
"EX: MsgBox Date
Assuming that today is juli 29 1999, the msgbox now displays 25-07-99 if
your locale settings use the dash (-) as the date separator and the short
date format is dd/mm/yy."
- håber i kan bruge dette til noget, det giver i hvertfald noget at tænke
over, jeg oplever ikke problemer med Now, dem har jeg til gængæld haft ved
brug af de andre....
Chrisser