
Time() returning hh:mm:ss tt and not HH:mm:ss
I may have this in a number of places in the code, it would be handy if
there was one way to change it for all the occurrences ... although this is
indeed a good fix if it cannot be done.
Cheers,
Ben.
Quote:
> Hi Ben ,
> You may achieve the same result by using
> datepart("h",now()) & ":" & datepart("n",now()) & ":" &
datepart("s",now())
> Regards
> Anoj Kumar
> > Dear All,
> > In my VBScript server-side code on IIS 5 when I do the time() function,
it
> > is returning hh:mm:ss tt (where tt = AM or PM). However, I would like it
> to
> > return HH:mm:ss (as it does on another server of ours).
> > When I look at the Regional Settings on both IIS servers (development
and
> > main) the format is:
> > Time Format: HH:mm:ss
> > Time separator: ":"
> > AM Symbol: AM
> > PM Symbol: PM
> > Can you tell IIS not to use the Regional Settings somehow as it seems
not
> to
> > be doing this? Any ideas why it isn't using the Regional Setting?
> > Any help much appreciated.
> > Regards,
> > Ben Weeks.
> > --
> > Business Advisor & IT Consultant
> > OPAR Ltd.
> > +44(0)7968 847 178