By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,725 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,725 IT Pros & Developers. It's quick & easy.

Daylight Savings Time?

P: n/a
J
Hello. Our webserver is running Windows 2000 Server iis5 and was wondering
if anyone knew if the new Daylight Savings Time rule will affect any classic
..asp pages? I think I'm mainly concerned with the date functions like
DateDiff() or Now() that is used in these classic .asp pages that our
webserver hosts?

Thanks in advance.

J
Feb 22 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
J wrote:
Hello. Our webserver is running Windows 2000 Server iis5 and was
wondering if anyone knew if the new Daylight Savings Time rule will
affect any classic .asp pages? I think I'm mainly concerned with the
date functions like DateDiff() or Now() that is used in these classic
.asp pages that our webserver hosts?
The short answer is "no".

The long answer can be found at
http://msdn2.microsoft.com/en-us/vstudio/bb264729.aspx

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Feb 22 '07 #2

P: n/a
J
Thank you very much Bob. This saves me much time and headaches in
researching. I totally appreciate it.

Take cares.

J

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:e4**************@TK2MSFTNGP02.phx.gbl...
>J wrote:
>Hello. Our webserver is running Windows 2000 Server iis5 and was
wondering if anyone knew if the new Daylight Savings Time rule will
affect any classic .asp pages? I think I'm mainly concerned with the
date functions like DateDiff() or Now() that is used in these classic
.asp pages that our webserver hosts?
The short answer is "no".

The long answer can be found at
http://msdn2.microsoft.com/en-us/vstudio/bb264729.aspx

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Feb 22 '07 #3

P: n/a
Bob Barrows [MVP] wrote on 22 feb 2007 in
microsoft.public.inetserver.asp.general:
"J" <ID***********@Nowhere.comwrote:
>Hello. Our webserver is running Windows 2000 Server iis5 and was
wondering if anyone knew if the new Daylight Savings Time rule will
affect any classic .asp pages? I think I'm mainly concerned with the
date functions like DateDiff() or Now() that is used in these classic
.asp pages that our webserver hosts?
The short answer is "no".
Bob is right. If you live "no where" as your email address suggests,
there is no time to speak of, so no problemo.

"the new Daylight Savings Time rule" where is that?
The Salomon Islands?
The long answer can be found at
http://msdn2.microsoft.com/en-us/vstudio/bb264729.aspx
Bob seems to think you live in the US, but I am not so sure.

There is more of the world out there,
where possibly new rules could come into effect.

In short, if your server has the correct time,
and you want to show and use only that time,
Whatever dst rule rules is of no consequence.

=======================

If however, as in my case, the Server is in Toronto
and the effective time should be in Central European Time,
you have a problem for the hours or days,
that the difference is not 6 hours.

You will need constructs like [this is for spring 2006]:

<%
nowCET = DateAdd("h", 6, Now)

If nowCET>#2006-03-26 02:00# then nowCET = DateAdd("h", 7, now)
If now>#2006-04-02 02:00# then nowCET = DateAdd("h", 6, now)

%>

Serverside jscript could give you the difference between UTC and server
datetime, but the differens between utc and requested datetime is up to
you.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 22 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.