469,645 Members | 1,634 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

Dateadd function not adding up...

Please see: http://www.showorders.com/test3.asp
The code generating the page is as follows:

testdate = "1/29/2003 1:00:00 PM"

while count <> 5
testdate = dateadd("n",15,testdate)
response.write testdate & "<br>"
count = count + 1
wend
What is going on there? The times should be incrementing by 15 minute
intervals, not 14min and 59 seconds. I have several pages that have
suddenly stopped functioning because of this strange date calculating.
My web host insists there is nothing wrong with the ASP service. Any
help or insight is greatly appreciated. Thanks...
Jul 19 '05 #1
3 3516
That exact code produces the results you expect on my machine, XP Pro, WSH
5.6. Are you running an older version of WSH? I can't think of anything in
regional settings that would cause Windows to think that a minute is 59
seconds long.

Ray at home

"Gabe" <on*************@yahoo.com> wrote in message
news:8a**************************@posting.google.c om...
Please see: http://www.showorders.com/test3.asp
The code generating the page is as follows:

testdate = "1/29/2003 1:00:00 PM"

while count <> 5
testdate = dateadd("n",15,testdate)
response.write testdate & "<br>"
count = count + 1
wend
What is going on there? The times should be incrementing by 15 minute
intervals, not 14min and 59 seconds. I have several pages that have
suddenly stopped functioning because of this strange date calculating.
My web host insists there is nothing wrong with the ASP service. Any
help or insight is greatly appreciated. Thanks...

Jul 19 '05 #2
The page is running on a Linux RedHat 7.3 operating system w/ Apache
1.3.27 web server and ChiliSoft Server 3.6.2. The pages in question
were working for almost 2 years then suddenly quit working when the
functionality of the dateadd function apparently changed. I've copied
and pasted my test page to another web host and it works fine there,
so it seems to just be my current web hosting provider, but they say
there is absolutely nothing wrong even after seeing the dateadd
function is adding 14:59 instead of 15:00.

-Gabe
"Ray at <%=sLocation%>" <myfirstname at lane 34 . komm> wrote in message news:<uo**************@TK2MSFTNGP11.phx.gbl>...
That exact code produces the results you expect on my machine, XP Pro, WSH
5.6. Are you running an older version of WSH? I can't think of anything in
regional settings that would cause Windows to think that a minute is 59
seconds long.

Ray at home

"Gabe" <on*************@yahoo.com> wrote in message
news:8a**************************@posting.google.c om...
Please see: http://www.showorders.com/test3.asp
The code generating the page is as follows:

testdate = "1/29/2003 1:00:00 PM"

while count <> 5
testdate = dateadd("n",15,testdate)
response.write testdate & "<br>"
count = count + 1
wend
What is going on there? The times should be incrementing by 15 minute
intervals, not 14min and 59 seconds. I have several pages that have
suddenly stopped functioning because of this strange date calculating.
My web host insists there is nothing wrong with the ASP service. Any
help or insight is greatly appreciated. Thanks...

Jul 19 '05 #3

"Gabe" <on*************@yahoo.com> wrote in message
news:8a**************************@posting.google.c om...
The page is running on a Linux RedHat 7.3 operating system w/ Apache
1.3.27 web server and ChiliSoft Server 3.6.2.


Nice how you failed to mention that most critical part. If there's a
chilisoft forum anywhere, I suggest posting there to see if other people
have the same problem.

Ray at home
Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Zlatko Matić | last post: by
3 posts views Thread by Annette Massie | last post: by
4 posts views Thread by ey.markov | last post: by
1 post views Thread by C.Davidson | last post: by
reply views Thread by Zlatko Matić | last post: by
2 posts views Thread by Rich Raffenetti | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.