Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last day of the month
Message
 
À
07/02/2003 22:52:51
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00750917
Message ID:
00751336
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform