Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calendar function
Message
 
To
08/05/2001 05:22:03
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00504602
Message ID:
00504673
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform