Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using DateSerial to get the last day of the month 1

Status
Not open for further replies.

MikeT

IS-IT--Management
Feb 1, 2001
376
US
varMonth1 = dateserial(2001,Month(date),15)

This gives me the 15th of current month no problem.
I need the last day of the month, which I assume would be easiest by taking the first day of NEXT month minus 1.
How can I use dateserial to do that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top