|
|
|
|
|
- Range selection
- Changing a time period in a Calendar, Organizer or Scheduler control
- Special cases
EndDate (Property) In french: DateFin
The property EndDate property is used to find out and modify the end date of the selected period: - in a Calendar control,
in an Organizer control. in a Scheduler control.
NbJour is int
NbJour = DateDifference(CAL_Calendrier1.DateDébut, ...
CAL_Calendrier1.DateFin) + 1
Info("Période sélectionnée : du " + ...
DateToString(CAL_Calendrier1.DateDébut) + ...
" au " + DateToString(CAL_Calendrier1.DateFin) + ...
" soit " + NbJour + " jours")
Syntax
Getting the end of the date range Hide the details
<End date> = <Control used>.EndDate
<End date>: Character string or Date variable - End date of the range selected in the control.
- In a Calendar control, this date is in "YYYYMMDD" format.
In an Organizer or Scheduler control, this date is in "YYYYMMDDHHmmSSCCC" format.
- Date of the selected day if a day is selected,
- Empty string ("") if no day is selected.
<Control used>: Control name Name of the control used:- Calendar control,
Organizer control. Scheduler control.
Changing the end of the date range Hide the details
<Control used>.EndDate = <New date>
<Control used>: Control name Name of the control used:- Calendar control,
Organizer control. Scheduler control.
<New date>: Character string or Date variable End date of the range to be selected in the control. - In a Calendar control, this date is in "YYYYMMDD" format.
In an Organizer or Scheduler control, this date is in "YYYYMMDDHHmmSSCCC" format.
Remarks Range selection To select a time range: - in a Calendar control, " Range selection" must be selected in the "Details" tab.
in an Organizer control, the option "Allow time range selection" must be selected in the "Details" tab. in a Scheduler control, the option "Allow time range selection" must be selected in the "Details" tab.
Changing a time period in a Calendar, Organizer or Scheduler control To change the start date of a selected time period, specify the start date ( StartDate property) and the end date ( EndDate property). When the start date changes: - the end date is automatically deselected.
- the end date has to be selected (programmatically or by clicking a control date).
To modify the end date of a selected period, simply use the EndDate property: the period is automatically modified.. Special cases - The start date of a time period can be identified and changed with the StartDate property.
- The StartDate property returns the start date of the time period in chronological order. Therefore, if the end date is selected before the start date, the StartDate property returns the last selected date.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|