ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Date and time functions
  • Special cases
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Used to define the default value of Date, Time and DateTime variables.
Reminder: By default, variables of type Date, Time and DateTime are initialized with the system time and date at the time of program execution.
Example
// Initialisation de toutes les variables Date, Heure,
// et DateHeure au 1er Janvier 2020 à 0H00
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: wd300vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/19/2024

Send a report | Local help