Calendar::TodaysDate Property
Gets or sets the value for today's date.
Assembly: System.Web (in System.Web.dll)
[BrowsableAttribute(false)] public: property DateTime TodaysDate { DateTime get (); void set (DateTime value); }
<asp:Calendar TodaysDate="DateTime" />
Property Value
Type: System::DateTimeA System::DateTime that contains the value that the Calendar considers to be today's date. If this property is not explicitly set, this date will be the date on the server.
Use the TodaysDate property to determine today's date. You can also use this property to programmatically set the value for today's date on the Calendar control. This property is set using a System::DateTime object.
Note |
|---|
This date might need to be adjusted to accommodate users who are in a different time zone. |
The appearance of the date specified by the TodaysDate property can be customized by using the TodayDayStyle property.
Note |
|---|
If the VisibleDate property is not set, the date specified by the TodaysDate property determines which month is displayed in the Calendar control. |
| Topic | Location |
|---|---|
| How to: Set Today's Date Programmatically in a Calendar Web Server Control | Building ASP .NET Web Applications |
| How to: Set Today's Date Programmatically in a Calendar Web Server Control | Building ASP .NET Web Applications |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note