by Shawn Klein (1 Submission)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 8th July 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
One line of code to retrieve the last day of the previous month using Dateadd() function. If you would like other tips, You can email me at
' If you want you can place a label on a form for testing. '
Example:
Label1 = datevalue(format(dateadd("d",-day(date),date),"mm/dd/yyyy"))
No comments have been posted about One line of code to retrieve the last day of the previous month using Dateadd() function. If you wo. Why not be the first to post a comment about One line of code to retrieve the last day of the previous month using Dateadd() function. If you wo.