DateSys (Function) In french: DateSys
Res = DateSys() // Res = "20011225" Res = DateToString(DateSys()) // Res = "25/12/2001" Year = Left(DateSys(), 4) // Year returns the current year (2001 for example)
Syntax <Result>: Character string or Date variable System date in YYYYMMDD format (YYYY corresponds to the year, MM to the month and DD to the day).
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
|
Business / UI classification: Neutral code
This page is also available for…
|
|
|
| |
| WinDev for a Windows application: beware of user privileges! |
|
| When trying to set the computer's clock to a certain date / time, the functions DateSys("20151231") or TimeSys("18:00:00") will not return an error code if the computer's clock is not set (mostly because of missing admin rights). If you wish to be able to act on a returned error then use the API SetSystemTime. |
|
|
|
| |
| |
| |
| |
| |
| |
| | |
|