PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Selecting a period
  • Modifying a period in a Calendar, Organizer or Scheduler control
  • Special cases
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..StartDate is used to find out and modify the start date of the period selected:
  • in a Calendar control.
  • WINDEVWindows in an Organizer control.
  • Versions 16 and later
    WINDEVWindows in a Scheduler control.
    New in version 16
    WINDEVWindows in a Scheduler control.
    WINDEVWindows in a Scheduler control.
    WINDEVWindowsAndroidiPhone/iPad in a Scheduler control.
Versions 18 and later
iPhone/iPad This property is now available for the iPhone/iPad applications.
WINDEVLinux This property is now available for the WINDEV applications in Linux.
New in version 18
iPhone/iPad This property is now available for the iPhone/iPad applications.
WINDEVLinux This property is now available for the WINDEV applications in Linux.
iPhone/iPad This property is now available for the iPhone/iPad applications.
WINDEVLinux This property is now available for the WINDEV applications in Linux.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
AndroidiPhone/iPad In a Scheduler control, you only have the ability to find out the start date of the period.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
AndroidiPhone/iPad In a Scheduler control, you only have the ability to find out the start date of the period.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
AndroidiPhone/iPad In a Scheduler control, you only have the ability to find out the start date of the period.
Example
// Retrieve the selected period (Calendar control)
NbDays is int
NbDays = DateDifference(CAL_Calendar1..StartDate, ...
CAL_Calendar1..EndDate) + 1
Info("Selected period: from " + ...
DateToString(CAL_Calendar1..StartDate) + ...
" to " + DateToString(CAL_Calendar1..EndDate) + ...
" which means " + NbDays + " days")
Syntax

Finding out the start date of the period Hide the details

<Start date> = <Control name>..StartDate
<Start date>: Character string or Date variable
  • Start date of the period selected in the control.
    • In a Calendar control, this date is in "YYYYMMDD" format.
    • WINDEVWindowsAndroidiPhone/iPad In an Organizer control or in a Scheduler control, this date is in "YYYYMMDDHHMMSSLLL" format.
  • Date of the selected day if a day is selected,
  • Empty string ("") if no day is selected.
<Control name>: Character string (with or without quotes)
Name of control used.

Modifying the start date of the period Hide the details

<Control name>..StartDate = <New date>
<Control name>: Character string (with or without quotes)
Name of control used.
<New date>: Character string or Date variable
Start date of the period to select in the control.
  • In a Calendar control, this date is in "YYYYMMDD" format.
  • WINDEVWindows In an Organizer control or in a Scheduler control, this date is in "YYYYMMDDHHMMSSLLL" format.
Remarks

Selecting a period

To select a period :
  • in a Calendar control, the option "Period selection" must be selected in the "Details" tab of the Calendar control.
  • WINDEVWindows in an Organizer control, the option "Allow the selection of periods" must be selected in the "Details" tab of Organizer control.
  • WINDEVWindows in a Scheduler control, the option "Allow the selection of periods" must be selected in the "Details" tab of Scheduler control.

Modifying a period in a Calendar, Organizer or Scheduler control

To modify the start date of a selected period, you must specify the start date (..StartDate) and the end date of the period (..EndDate). Indeed, the modification of the start date:
  • automatically deselects the end date.
  • waits for the end date to be selected (by programming or via a click on a control date).
To modify the end date of a selected period, all you have to do is use ..EndDate: the period is automatically modified.

Special cases

  • The end date of a period is returned and modified by ..EndDate.
  • ..StartDate returns the start date of the period according to the chronological order. Therefore, if the end date was selected before the start date, ..StartDate will return the last date that was selected.
  • AndroidiPhone/iPad In a Scheduler control, ..StartDate can only be used to find out the start date of the period. This date cannot be modified.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment