Defines the date used as today; Null for the current date.
Get
| C# | object Date = object.TodayDate; |
| VB.NET | Date = object.TodayDate As Object |
| C++ | _variant_t Date = object->TodayDate; _variant_t Date = object->GetTodayDate(); |
| C | HRESULT object->get_TodayDate(VARIANT* Date); |
Put
| C# | object object.TodayDate = Date; |
| VB.NET | object.TodayDate = Date As Object |
| C++ | _variant_t object->TodayDate = Date; void object->PutTodayDate(const _variant_t& Date); |
| C | HRESULT object->put_TodayDate(VARIANT Date); |
object
Date
Defines the date used as today; Null for the current date.
The TodayDate property defines the date a calendar treats as today: the date marked in the calendar (HighlightToday), shown and selected by the Today button (ShowTodayButton) and reported by the Today property of the DayFormatting event's object. The time is ignored. p By default (Null) the current date is used, and the calendar follows it past midnight. An application can define a fixed date, for example a business date that differs from the computer's date, or for repeatable tests. In .NET, Null is DBNull.Value; null (Nothing) also restores the current date. p The texts "=Today" and the like of a date field control (DefaultText) and the text typed by the user always use the current date. p The setting applies to a month calendar control and to the dropdown calendar of a date field control.
See Also SftDateCalendar Object | Object Hierarchy | Today and Clear Buttons