PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Special cases
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
Used to define the default value of Date, Time and DateTime variables.
Reminder: By default, the Date, Time and DateTime variables are initialized with the system date and time when running the program.
Versions 15 and later
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
New in version 15
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Versions 16 and later
WEBDEV - Server codePHP This function is now available for the PHP sites.
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
WEBDEV - Server codePHP This function is now available for the PHP sites.
Universal Windows 10 App This function is now available for the Windows Phone applications.
WEBDEV - Server codePHP This function is now available for the PHP sites.
Universal Windows 10 App This function is now available for the Windows Phone applications.
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.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
WEBDEV - Browser code This function is now available in browser code.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
WEBDEV - Browser code This function is now available in browser code.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
WEBDEV - Browser code This function is now available in browser code.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Initialize all the Date, Time,
// and DateTime variables to January 1st 2000 at 0:00
DateTimeByDefault("20000101", "0000")
Syntax

Initializing with the system date and time

DateTimeByDefault()

Initializing with a specific time and date Hide the details

DateTimeByDefault(<Date> , <Time>)
<Date>: Character string (with quotes)
Date used to initialize the Date and DateTime variables. This date is in "YYYYMMDD" format where YYYY corresponds to the year, MM to the month and DD to the day.
<Time>: Character string (with quotes)
Time used to initialize the DateTime and Time variables. This time is in HHMMSSCC format (HH corresponds to the hours, MM to the minutes, SS to the seconds and CC to the hundredths of a second).
Remarks
AndroidAndroid Widget Java

Special cases

The call to DateTimeByDefault must not be performed in the same process as the declaration of the time variables (date, time, datetime) onto which this function must be applied.
Otherwise, the modification will be ignored for the variables declared in the same process.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment