faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems : Times/Dates

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 4 people (75%) answered Yes
Recently 2 of 2 people (100%) answered Yes

Entry

What is the proper syntax if I have a date stored in a variable called strDate and I want to add one day to that variable?

Jul 23rd, 2000 03:21
unknown unknown, Francoise.Hontoy


In Asp you can't type a variable. So it will always be Dim strDate
Use the DateAdd function: DateAdd(interval, number, date) 
Further explanation can be found at: 
http://msdn.microsoft.com/scripting/



© 1999-2004 Synop Pty Ltd