PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns or modifies the system date (current date and time defined on the current computer).
AndroidAndroid Widget JavaPHP The system date cannot be modified.
Example
// Changes the system date and displays the new date
SysDateTime("20020101235900")
MySysDateTime is DateTime
MySysDateTime = SysDateTime()
Syntax

Getting the system date and time Hide the details

<Result> = SysDateTime()
<Result>: Character string or DateTime variable
System date and time in YYYYMMDDHHmmSSCCC format (YYYY corresponds to the year, MM to the month, DD to the day, HH to hours, mm to minutes, SS to seconds and CCC to milliseconds).
WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPadIOS WidgetApple WatchMac CatalystUser code (UMC)Ajax

Modifying the system date and time Hide the details

SysDateTime(<New date and time>)
<New date and time>: Character string or DateTime variable
New system date and time in YYYYMMDDHHmmSSCCC format (YYYY corresponds to the year, MM to the month, DD to the day, HH to hours, mm to minutes, SS to seconds and CCC to milliseconds).
Remarks
  • To get the date and time in a format other than YYYYMMDDHHmmSSCCC, the string must be formatted using the DateToString, Right, Left functions or the date properties. The YYYYMMDDHHmmSSCCC format was chosen because it allows you to check the order of dates.
  • On all current systems, the year of the system date can be between 1920 and 2120.
Business / UI classification: Neutral code
Component: wd270std.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment