PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
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 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.
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.
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.
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

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.
Component : wd250vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment