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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find last day of prior month 1

Status
Not open for further replies.

vbajock

Programmer
Jun 8, 2001
1,921
US
I searched the forum and couldn't find it, but I could have sworn somebody posted a frag showing how to get the last day of the prior month with a single line of code using format. If anyone has it I would appreciate the post.
Thanks
 
Thanks and thanks to danvlas!
If any one else is interested, here is a copy:

Date()-Day(Date())
will give you the last day of previous month

If you have a date field:

DateField - Day(DateField)

Good luck

Daniel Vlas
Systems Consultant
danvlas@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top