HeaderPane
Main
Hide
Share Link
Print

TodayDate Property, SftDateCalendar Object

Defines the date used as today; Null for the current date.

Syntax

Get

C#object Date = object.TodayDate;
VB.NETDate = object.TodayDate As Object
C++_variant_t Date = object->TodayDate;
_variant_t Date = object->GetTodayDate();
CHRESULT object->get_TodayDate(VARIANT* Date);

Put

C#object object.TodayDate = Date;
VB.NETobject.TodayDate = Date As Object
C++_variant_t object->TodayDate = Date;
void object->PutTodayDate(const _variant_t& Date);
CHRESULT object->put_TodayDate(VARIANT Date);

object

A SftDateCalendar object.

Date

Defines the date used as today; Null for the current date.

Comments

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


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