VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



One line of code to retrieve the last day of the previous month using Dateadd() function. If you wo

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

Rate One line of code to retrieve the last day of the previous month using Dateadd() function. If you wo



' 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"))

Download this snippet    Add to My Saved Code

One line of code to retrieve the last day of the previous month using Dateadd() function. If you wo Comments

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.

Post your comment

Subject:
Message:
0/1000 characters