Ask a Question related to ASP, Design and Development.
-
Øyvind Isaksen #1
dateadd()
Hi!
I need to add 1 day to a specific date.
The date have is stored in a variable called "DateOld". The value of the
variable have this syntax: mm.dd.yyyy.
The new date is the variable called "DateNew".
This is my code that dont work:
DateNew = DATEADD(d,1,DateOld)
What is wrong here??
I get this error message: Invalid procedure call or argument: 'DATEADD'
Regards,
Øyvind Isaksen
Norway
Øyvind Isaksen Guest
-
dateadd function
I have 2 text field in a form. 1st field for input date. I want to use onclick event handler for 2nd text field. When user click 2nd text field... -
Facing problem in dateadd function.
I am using dateadd function for "n" minutes but it is not working properly. Could someone tell me what is the problem in my code? <cfset... -
DateAdd
Hi, Here is my due date: end of the year + 40 working day. This is what I have but it gave me the wrong date ==================== <cfset yr=... -
dateAdd and datePart return 13, 14, 15 instead of 1, 2, 3
I'm trying to increment between the end of lunch and the end of the day. The code below is returning a datePart of 13 instead of 1 (for 1:00:00 PM)... -
DateAdd does not work
Dear Lord, I'm trying to code a drop down for a date entry that gives the user the option of the current date plus the dates of the last 7 days.... -
Ray at #2
Re: dateadd()
The first issue is that the first argument needs to be a string, not an
empty variable, so you'd do:
DateNew = DateAdd("d", 1, DateOld)
But I don't think it'll work with that dot format. (Whoever started putting
dots in dates and phone numbers should be eliminated!) Replace the "." with
"/" before you use DateAdd.
Ray at work
"Øyvind Isaksen" <oyvind@webressurs.no> wrote in message
news:%23QSt4wNlDHA.2140@TK2MSFTNGP09.phx.gbl...> Hi!
>
> I need to add 1 day to a specific date.
> The date have is stored in a variable called "DateOld". The value of the
> variable have this syntax: mm.dd.yyyy.
> The new date is the variable called "DateNew".
>
> This is my code that dont work:
>
> DateNew = DATEADD(d,1,DateOld)
>
> What is wrong here??
> I get this error message: Invalid procedure call or argument: 'DATEADD'
>
>
> Regards,
> Øyvind Isaksen
> Norway
>
>
Ray at Guest
-
Tom B #3
Re: dateadd()
DateNew=DateAdd("d",1,DateOld)
"Øyvind Isaksen" <oyvind@webressurs.no> wrote in message
news:%23QSt4wNlDHA.2140@TK2MSFTNGP09.phx.gbl...> Hi!
>
> I need to add 1 day to a specific date.
> The date have is stored in a variable called "DateOld". The value of the
> variable have this syntax: mm.dd.yyyy.
> The new date is the variable called "DateNew".
>
> This is my code that dont work:
>
> DateNew = DATEADD(d,1,DateOld)
>
> What is wrong here??
> I get this error message: Invalid procedure call or argument: 'DATEADD'
>
>
> Regards,
> Øyvind Isaksen
> Norway
>
>
Tom B Guest
-
Evertjan. #4
Re: dateadd()
Tom B wrote on 17 okt 2003 in microsoft.public.inetserver.asp.general:
So true ;-)> DateNew=DateAdd("d",1,DateOld)
>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. Guest
-
Ken Schaefer #5
Re: dateadd()
The function should be culture-aware. There are plenty of cultures that have
alternate numeric delimiters (eg . for thousands, and commas for decimals),
date delimiters, currency formats etc. VBScript doesn't care.
Cheers
Ken
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uWotR2NlDHA.1740@TK2MSFTNGP12.phx.gbl...
: The first issue is that the first argument needs to be a string, not an
: empty variable, so you'd do:
:
: DateNew = DateAdd("d", 1, DateOld)
:
: But I don't think it'll work with that dot format. (Whoever started
putting
: dots in dates and phone numbers should be eliminated!) Replace the "."
with
: "/" before you use DateAdd.
:
: Ray at work
:
: "Øyvind Isaksen" <oyvind@webressurs.no> wrote in message
: news:%23QSt4wNlDHA.2140@TK2MSFTNGP09.phx.gbl...
: > Hi!
: >
: > I need to add 1 day to a specific date.
: > The date have is stored in a variable called "DateOld". The value of the
: > variable have this syntax: mm.dd.yyyy.
: > The new date is the variable called "DateNew".
: >
: > This is my code that dont work:
: >
: > DateNew = DATEADD(d,1,DateOld)
: >
: > What is wrong here??
: > I get this error message: Invalid procedure call or argument: 'DATEADD'
: >
: >
: > Regards,
: > Øyvind Isaksen
: > Norway
Ken Schaefer Guest



Reply With Quote

