Returns the value that the calendar uses as today’s date.
DatePicker, MonthCalendar controls
controlname.GetToday ( )
Argument |
Description |
---|---|
controlname |
The name of the control for which you want to get today’s date |
Date.
By default, the current system date is set as the Today date. You can use the SetToday function to specify a different date.
This example retrieves the Today date in a DatePicker control into currentdate:
Date currentdate currentdate = dp_1.GetToday()