Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calendar function
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00504602
Message ID:
00504944
Views:
17
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform