View Full Version : How do I Get future date


smiler44
09-22-2011, 01:06 PM
How do I get a future date?
Monday to Friday is my working week.
I want the date of "today" next week
I am rubbish with funtions, so if it is a function please could you supply the whole funtion/ code that i can attach to a command button?

Thank you

smiler44

boblarson
09-22-2011, 01:12 PM
If you just want the date 7 days from now you can use

Date() + 7

or

DateAdd("d", 7, Date())

or

DateAdd("ww", 1, Date())

smiler44
09-22-2011, 01:18 PM
Bob Larson, I've got to say you are a genius. Thanmk you.
You have given me such a simple reply. what I found on the web I could not undertsand.

Thank you so very much

smiler44

smiler44
09-24-2011, 10:30 AM
Bob,
still getting the date 7 days or so from now, is there an easy way with the code you gave me have the date in the format of dd/mm/yy?

Thanks
smiler44

boblarson
09-26-2011, 07:07 AM
Format(DateAdd("d", 7, Date()), "dd/mm/yy")

smiler44
09-27-2011, 03:02 AM
Bob, thank you very much.


smiler44