Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calendar function
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00504602
Message ID:
00504944
Vues:
16
>>Is there a calendar function in VB6? I want to know the days in the month, whether it is Mon, Tue, Wed, ..., etc.
>>
>>Things I would need if I am writing a calendar application.
>I just checked MS Access VBA help file and found several functions you might use. I believe, that these functions exist in VB too. I can't check it right now, because I don't have MSDN installed.
>
><B>Day(Date)</B>
>Returns a Variant (Integer) specifying a whole number between 1 and 31,
>inclusive, representing the day of the month.
>
><B>Weekday(date, [firstdayofweek])</B>
>Returns a Variant (Integer) containing a whole number representing the day
>of the week.
>The Weekday function can return any of these values:
>
>Constant	Value	Description
>
>vbSunday	1	Sunday
>vbMonday	2	Monday
>vbTuesday	3	Tuesday
>vbWednesday	4	Wednesday
>vbThursday	5	Thursday
>vbFriday	6	Friday
>vbSaturday	7	Saturday
>
>Month(Date)
>Year(Date)
>Hour(Time)
>Minute(Time)
>Second(Time)
>
>
>HTH
Just to mention few more (Professional ASP 2.0 ISBN 1-861001-26-6, chapter. 2, p. 71):
DateSerial
MonthName
WeekDayName
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform