Click to See Complete Forum and Search --> : Date Function


Brachole
09-03-2008, 10:58 AM
I'm trying to write a date function which would display exactly 1 year from today's date. Example, today is 9-3-2008, I want to display 9-3-2009.

I have this but it doesn't quiet work:

<%
Dim OneYearDate
OneYearDate = DateSerial(Year(Date), Month(Date) + 13, 0 - 0)
%>

sstalder
09-04-2008, 12:38 PM
DateSerial(Year(Date)+1,Month(Date),Day(Date))