Returns the index of the special date that applies to a date, -1 for none.
| C# | int Index = object.Find(DateTime Date); |
| VB.NET | Index = object.Find(ByVal Date As Date) As Integer |
| C++ | long Index = object->Find(DATE Date); |
| C | HRESULT object->raw_Find(DATE Date, long* Index); |
object
Date
The day to look up.
Index
Returns the index of the special date that applies to the day, or -1 if none applies.
The Find method returns the special date the calendar uses for a day, taking the recurrence of each special date into account. A weekly special date applies to every day with the same day of the week, a monthly one to the same day of every month and an annual one to the same day and month of every year, earlier years included. Monthly and annual recurrences use the calendar system of the control's culture (CalendarType). p When several special dates apply, the first one is returned. The same index is passed in the SpecialDate property of the DayFormatting event's object.
See Also SftDateSpecialDates Object | Object Hierarchy | Special Dates