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
Returns the day of the week that corresponds to the specified date (this date is an integer).
Example
IntegerToDay(DateToInteger("20011225")) // Returns 2
IntegerToDay(73773) // Returns 2
 
IF IntegerToDay(DateToInteger(DateSys())) > 5 THEN
Info("It's the weekend")
END
Syntax
<Result> = IntegerToDay(<Date>)
<Result>: Integer
Number corresponding to the day of the week for the specified date:
1 - Monday
2 - Tuesday
3 - Wednesday
4 - Thursday
5 - Friday
6 - Saturday
7 - Sunday
<Date>: Integer
Number of days elapsed since January 1st 1800 + 1 (this number is returned by DateToInteger).
Remarks
Java

Special cases

This function cannot be used to retrieve days of weeks before October 14, 1582 (the change from the Julian to the Gregorian calendar will not be taken into account).
Business / UI classification: Neutral code
Component: wd260std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment