iCalRecurrencePatternGetDates Method |
Returns an array of DateTime objects. Note that if the Until value AND the Count value are
unset the maximum number of dates returned is 12 months, 365 days, 52 weeks, or 1 year, depending on the
frequency of the pattern.
Namespace:
NetQuarry.Mail
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public List<DateTime> GetDates(
DateTime startDate,
TimeZone timeZone,
bool includeStartDate = false
)
Public Function GetDates (
startDate As DateTime,
timeZone As TimeZone,
Optional includeStartDate As Boolean = false
) As List(Of DateTime)
Parameters
- startDate
- Type: SystemDateTime
The start date, in UTC, to which to apply the pattern. - timeZone
- Type: NetQuarryTimeZone
The TimeZone of the meeting (used to ensure proper times across daylight savings time transitions). - includeStartDate (Optional)
- Type: SystemBoolean
Specifies whether or not the start date should be included in the dates.
Return Value
Type:
ListDateTimeThe array of dates according to the start date and pattern.
Remarks
To ensure proper recurrences across daylight savings time changes, the timeZone is required.
The recurrence dates are generated by converting the specified startDate to the specified
timeZone and incrementing through the dates converting each to UTC. This can be circumvented
by providing a timeZone of zero which indicates UTC.
See Also