If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Date function
Hello all. This should be a pretty easy question. The following date
function I'm using gives me the date one year from the current date. However, it only gives me the fist day of that date one year from now. So today is 09/18/2009 and my date function gives me 09/01/2010. What I would like it to do is give me the exact month/day/year one year into the future. So if my date was 09/18/2009 I would like to return the date of 09/18/2010. Below is the function I'm currently using. Thanks so much for your help. DateSerial(Year(Date), Month(Date) + 12, 1) Chris |
#2
|
|||
|
|||
Date function
DateAdd("yyyy", 1, Date)
or DateAdd("m", 12, Date) or DateSerial(Year(Date), Month(Date) + 12, Day(Date)) -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Chris" wrote in message ... Hello all. This should be a pretty easy question. The following date function I'm using gives me the date one year from the current date. However, it only gives me the fist day of that date one year from now. So today is 09/18/2009 and my date function gives me 09/01/2010. What I would like it to do is give me the exact month/day/year one year into the future. So if my date was 09/18/2009 I would like to return the date of 09/18/2010. Below is the function I'm currently using. Thanks so much for your help. DateSerial(Year(Date), Month(Date) + 12, 1) Chris |
Thread Tools | |
Display Modes | |
|
|