ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Date and time functions
  • Overview
  • Different methods for managing dates and times
  • Date management and validity
  • Manipulating dates and times in Edit controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
WINDEV, WEBDEV and WINDEV Mobile propose several methods for managing dates and times in your applications:
Different methods for managing dates and times
Depending on the type of operation performed on the dates and times, it may be more efficient to use WLanguage variables or functions.
The WLanguage functions are recommended:
  • To format dates and times and perform conversion operations (convert a date to an integer, etc.).
  • To get information about dates and times (date or time validity, get name of a week day, etc.).
The use of variables is recommended:
  • To perform calculations on dates and times (differences, calculation of duration, etc.).
  • To extract part of the date or time (day, month, year, etc.).

Date management and validity

The date storage format allows you to store dates from 01/01/0001 to 12/31/9999.
WLanguage functions and WLanguage properties make accurate calculations on dates from January 1st, 1583.
Manipulating dates and times in Edit controls
The values in the Edit controls can be managed with Date or Time variables.
To do so, assign the control content to the variable.
StartDate is Date
// Assign the content of the control to the variable
StartDate = EDT_DateControl
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/01/2024

Send a report | Local help