Calendar
Returns or sets a value specifying the type of calendar to use with your project.
Syntax: Calendar [ = calendartype ]
- calendartype
- A VbCalendar constant specifying the calendar type.
| Constant | Value | Description |
|---|---|---|
| vbCalGreg | 0 | Gregorian calendar (default). |
| vbCalHijri | 1 | Hijri calendar. |
The Calendar property can only be set programmatically. The setting of Calendar affects the string returned by the Date$ property when the calendar is set to Hijri.
Example
This example sets the calendar type to Hijri.
Calendar = vbCalHijri
See Also
- Date property