|
|
|
|
DateSys (Function) In french: DateSys Returns or modifies the system date (current date defined on the current computer). Remarks: - This function is equivalent to Today.
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). Remarks - To get the system date in a format other than YYYYMMDD, the string must be formatted using the DateToString, Right, Left functions or the date properties. The YYYYMMDD format was chosen because it allows you to check the order of dates. This would not be possible with a date in YYYYDDMM or DDMMYYYY format, for example.
- On all current systems, the year of the system date can be between 1920 and 2120.
- Caution: To modify the system date, you must have the administrator rights on the current computer.
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|