473,837 Members | 1,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3730
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.goo gle.com...
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******* *******@TK2MSFT NGP11.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.goo gle.com...
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.goo gle.com...
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2816
by: Zlatko Matić | last post by:
I am currently migrating from MSDE to PostgreSQL and have to rewrite the function that is calculating next date of sampling... In MSDE there is a DateAdd function. I can't find the appropriate function in postgre. Can you help me? The function in MSDE is the following: ALTER FUNCTION dbo.slisp ( @UCESTALOST_BROJ int, @UCESTALOST_JEDINICA nvarchar (50),
1
17340
by: Raghu | last post by:
Hello... I am running into a problem while running a query..can some1 help.. this is the query : ************** SELECT * from Table S where S.dtDate1 BETWEEN dateadd(year,1,dateadd(month,-1,getdate())) AND dateadd(day,-1,(dateadd(month,1,dateadd(year,1,dateadd(month,-1,getdate()))))) *************** (first part of the date calculation comes out to be '2005-05-01' and
3
3734
by: Annette Massie | last post by:
I am trying to insert a record into a table via code and one of the values to add I would like as a dateadd calculation on a value from a query. My code looks like this: Set db = CurrentDb() ' if the table is in the same database Set rsAdd = db.OpenRecordset("tblClientTreatment") With rsAdd .AddNew !ClientID = Me.ClientID
4
10175
by: ey.markov | last post by:
Greetings, I have an A2K application where for a report the user enters a month-end date, and the system must gather transactions for that month. No problem, I thought, I'll just use the DateAdd function for the beginning of the date range, like this: Between DateAdd("m",-1,!!) And !!
1
19000
by: C.Davidson | last post by:
Does subject VB.net 2003 support DateAdd function? I have tried to implement the following without success. In my example I tried to simply add 30 months to 9/18/2003 and I get "New date: 12:00:00 AM", no date Example direct from VB Language Reference: Public Overloads Function DateAdd(ByVal Interval As DateInterval,_ ByVal Number As Double, ByVal DateValue As DateTime) As DateTime End Function
0
4464
by: Zlatko Matić | last post by:
I am currently migrating from MSDE to PostgreSQL and have to rewrite the function that is calculating next date of sampling... In MSDE there is a DateAdd function. I can't find the appropriate function in postgre. Can you help me? The function in MSDE is the following: ALTER FUNCTION dbo.slisp ( @UCESTALOST_BROJ int, @UCESTALOST_JEDINICA nvarchar (50),
2
4560
by: Rich Raffenetti | last post by:
I have the following code. If I do the dateadd function with dateinterval.minute, it works fine and the date/time value is displayed with zero seconds. If I do the dateadd function with dateinterval.second, an error is thrown saying I have an overflow. I would be happy to know if I am doing something wrong or if I could do it differently to get the seconds to display properly. Const largeInteger As Long = &H1C5EA3B5F585F1F Const...
3
4508
by: PaulClift | last post by:
Hi all, I have been pulling my hair out over this for sometime. Basically what is happening is that if I enter a date such as '15/12/2008' dateadd works fine, but if its a date such as '10/07/2008' the return value has swapped the month and the day, so if I'm adding 4 days it comes back as '10/11/2008'. sDate = DateAdd("d", 4, sDate) sDate is 1st created getting a date from an input box and converting it using CDate. Please help my...
4
17825
by: rodrigo21 | last post by:
Hello, I have one form with a field for entering a date 'orderdate' and another field for entering a days interval 'range'. This form is used to preform a query on a travel tickets database, so that I can search for tickets with dates from ('orderdate') till ('orderdate' + 'range'). For achieving this I have the followiong code: "SELECT * FROM viajes WHERE viajes.fecha BETWEEN DATEADD(Day,'". $_GET ."','". $_GET ."') AND '". $_GET...
0
9696
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10902
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10583
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9420
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7824
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5680
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4481
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3128
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.