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

Function for Last Day of Previous Month 1

Status
Not open for further replies.

szeiss

Programmer
Apr 5, 2000
137
US
I need a function to print out the last day of the previous month for example &quot;April 30, 2000&quot;.&nbsp;&nbsp;<br><br>Thanks,<br>Sherry
 
&nbsp;&nbsp;&nbsp;vardate = Month(Now) & &quot;/&quot; & Day(Now) & &quot;/&quot; & Year(Now)<br>&nbsp;&nbsp;&nbsp;varday = Month(vardate) & &quot;/01/&quot; & Year(vardate)<br>&nbsp;&nbsp;&nbsp;vardate = varday - 1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top