Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last day of the month
Message
 
To
07/02/2003 22:52:51
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00750917
Message ID:
00751336
Views:
11
There is no function available for this task.

You can use this code for calculating the last day of any month.

Public Function LMonth(nMonth As Integer) As Integer
Dim ab As Date
ab = CDate(Str(nMonth + 1) + "/01/" + CStr(Year(Date)))
LMonth = Day(ab - 1)
End Function

Regards,
Rajiv Dutt
rajiv.dutt@mind-infotech.com
Previous
Reply
Map
View

Click here to load this message in the networking platform