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 29 people (10%) answered Yes
Recently 0 of 10 people (0%) answered Yes

Entry

What ASP functions are available for doing date calculations?

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


You might look at http://msdn.microsoft.com/scripting/
Depending on what you prefer there is a VBScript an JScript Reference 
which might help.
VBScript has the datediff function: DateDiff(interval, date1, date2
[,firstdayofweek[, firstweekofyear]])
you could calculate the difference between dateborn and datenow 
(interval is "yyyy" in that case) don't forgert to check if datenow is 
after DateBornThisYear



© 1999-2004 Synop Pty Ltd