Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calendar function
Message
 
À
08/05/2001 05:22:03
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00504602
Message ID:
00504673
Vues:
22
>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
Igor Gelin
Database Developer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform