Home | Sign in | English EN
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Returns the name of the day that corresponds to a specified date.
MyDate is Date
MyDate = "20011225"
MyDate.ToDayInAlpha() // Returns "Tuesday"
MyDate is Date = "20011225"
MyDate.ToDayInAlpha()      // Returns "Tuesday"
MyDate is Date = DateSys()
MyTime is Time = DateSys()
EDT_Date = MyDate.ToDayInAlpha()+ " " + MyDate.Day + ...
" " + MyDate.ToMonthInAlpha() + " at " + ...
// The EDT_Date control contains for example: Monday 13 August at 14:44:17
<Result> = <Date>.ToDayInAlpha()
<Result>: Character string
Day of the week that corresponds to the specified date: monday, tuesday, wednesday, thursday, friday, saturday, sunday.
Remark: The day of the week depends on the linguistic options specified for dates in the "Languages" tab of the project description (on the "Project" pane, in the "Project" group, click "Description"):
  • If the project uses the linguistic options of Windows for the dates, the day will be returned in the language of Windows.
  • If the project uses specific parameters for the dates (for one or more languages), the day returned will correspond to the one specified in the project description.
<Date>: Date variable or DateTime variable
Date to use. This date can correspond to:
  • a Date variable.
  • Versions 24 and later
    a DateTime variable. In this case, only the date is taken into account.
    New in version 24
    a DateTime variable. In this case, only the date is taken into account.
    a DateTime variable. In this case, only the date is taken into account.
The date storage format allows you to store dates from 01/01/0001 to 12/31/9999.
The calculations performed on dates by the WLanguage functions or by the WLanguage properties are accurate from January 1st 1583.
Related Examples:
Management of dates Unit examples (WINDEV): Management of dates
[ + ] Using the Date type of WLanguage and the functions for handling dates.
Calculating the date of Easter and an age Unit examples (WINDEV): Calculating the date of Easter and an age
[ + ] Calculating the date of Easter for a given year and calculating the age of a person at a given date.
Popup calendar Unit examples (WINDEV): Popup calendar
[ + ] Using a calendar that can be used by the OpenPopup function.
The PopCalendar window is very useful in the applications containing date controls.
Indeed, the PopCalendar window allows you to choose a date visually.
The risk of error is reduced as the user can see the day of the week corresponding to the selected date.
Then, the date control is filled with the value returned by the PopCalendar window.
Component: wd260std.dll
Minimum version required
  • Version 24
This page is also available for…
Click [Add] to post a comment