Full Version: Date Calculation
UtterAccess Discussion Forums > Microsoft® Access > Access Queries
Phamacom
Hey All,

I hope this is not a dumb question. Given any date, what calculation should I use to get the first date of the seventh month. So for example, given date 6/4/05 how do I get to 8/1/05 or 9/1/05 or 10/1/05. Thanks for the help in advance.

Phamacom
freakazeud
Hi,
try:

DateSerial(Year(YourDate), Month(YourDate)7,1)

HTH
Good luck
Phamacom
Thank you so so so so much. It worked.
freakazeud
You're welcome frown.gif
Glad I could assist.
Good luck on future projects!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.