-
1
- #1
For those of us that work with dates alot, I wrote a function that might be of help. It takes the current date, and then returns the last day of the current month. For example, if today were August 15th, the function will return August 31. Since the function is based on the system date, it should always return the correct date, as long as your system date on your computer is correct.
Datetest: ((DateAdd("m",1,Date()))-(DatePart("d",((DateAdd("m",1,Date()))-1)))-1)
Datetest: ((DateAdd("m",1,Date()))-(DatePart("d",((DateAdd("m",1,Date()))-1)))-1)