PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns or modifies the system date (date and time of the day defined for the current computer).
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
AndroidAndroid Widget JavaPHP The system date cannot be modified.
New in version 18
Android Widget This function is now available in Android Widget mode.
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
AndroidAndroid Widget JavaPHP The system date cannot be modified.
Android Widget This function is now available in Android Widget mode.
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
AndroidAndroid Widget JavaPHP The system date cannot be modified.
Versions 20 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 20
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 21 and later
WEBDEV - Server codePHP This function is now available for the PHP sites.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
WEBDEV - Server codePHP This function is now available for the PHP sites.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
WEBDEV - Server codePHP This function is now available for the PHP sites.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Changes the system date and displays the new date
SysDateTime("20020101235900")
MySysDateTime is DateTime
MySysDateTime = SysDateTime()
Syntax

Finding out the system date and time Hide the details

<Result> = SysDateTime()
<Result>: Character string or DateTime variable
System date and time in YYYYMMDDHHMMSSLLL format (YYYY corresponds to the year, MM to the month, DD to the day, HH to the hour, MM to the minutes, SS to the seconds and LLL to the milliseconds).
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadUniversal Windows 10 AppAjaxUser code (UMC)

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 YYYYMMDDHHMMSSLLL format (YYYY corresponds to the year, MM to the month, DD to the day, HH to the hour, MM to the minutes, SS to the seconds and LLL to the milliseconds).
Remarks
  • To get the date and time in a format other than YYYYMMDDHHMMSSLLL, you must format the string (with DateToString, Right, Left) or you must use the properties on the dates. The YYYYMMDDHHMMSSLLL format was chosen because it allows you to check the chronology between two dates according to this same format.
  • On all the current systems, the year of the system date can be included between 1980 and 2099.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Java wd230java.jar
Linux wd230std.so
Android wd230android.jar
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment