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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
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
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
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
AndroidAndroid Widget 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: wd270vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment