ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Date and time functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the day of the week corresponding 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
Business / UI classification: Neutral code
Component: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/23/2024

Send a report | Local help