PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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
Java This function is now available for Java applications.
New in version 15
Java This function is now available for Java applications.
Java This function is now available for Java applications.
Versions 16 and later
PHP This function is now available for PHP sites.
New in version 16
PHP This function is now available for PHP sites.
PHP This function is now available for PHP sites.
Example
// Initialize all the Date, Time,
// and DateTime variables to January 1st 2020 at 0:00
DateTimeByDefault("20200101", "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 hours, MM to minutes, SS to seconds and CC to hundredths of a second).
Remarks
Java

Special cases

DateTimeByDefault must not be called in the same process (or event) where time variables (date, time, datetime) are declared.
Otherwise, the modification of the default date and time will be ignored for variables declared in the same process (or event).
Component: wd260vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment