|
|
|
|
|
- Overview
- Different methods for managing dates and times
- Date management and validity
- Manipulating dates and times in Edit controls
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. 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
StartDate = EDT_DateControl
Related Examples:
|
Unit examples (WINDEV): Calculations on durations
[ + ] Calculations on dates and times with the WLanguage functions: - Calculate the duration between two moments (dates and times) - Calculate a sum of durations - Calculate an average of durations
|
|
Unit examples (WINDEV): Management of dates
[ + ] Using the Date type of WLanguage and the functions for handling dates.
|
|
Unit examples (WINDEV Mobile): Management of dates
[ + ] Using the Date type and the WLanguage functions for handling dates.
|
|
Unit examples (WEBDEV): Management of dates
[ + ] This example presents the use of the Date type of WLanguage and the use of the functions for handling the dates.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|