HeaderPane
Main
Hide
Share Link
Print

Find Method, SftDateSpecialDates Object

Returns the index of the special date that applies to a date, -1 for none.

Syntax

C#int Index = object.Find(DateTime Date);
VB.NETIndex = object.Find(ByVal Date As Date) As Integer
C++long Index = object->Find(DATE Date);
CHRESULT object->raw_Find(DATE Date, long* Index);

object

A SftDateSpecialDates 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.

Comments

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


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.