Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting first and last dates of prior month
Message
 
À
04/03/2002 16:23:46
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00628029
Message ID:
00628078
Vues:
16
Thanks Jason!
It's perfect!
Max

>For first day of last month:

>Text1.Text = DateSerial(DatePart("YYYY", Date), DatePart("m", Date) - 1, 1)

>For last day of last month:

>Text1.Text = DateSerial(DatePart("YYYY", Date), DatePart("m", Date), 0)

>For first day of next month:

>Text1.Text = DateSerial(DatePart("YYYY", Date), DatePart("m", Date) + 1, 1)

>For last day of next month:

>Text1.Text = DateSerial(DatePart("YYYY", Date), DatePart("m", Date) + 2, 0)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform