DateToMonthInAlpha (Function) In french: DateVersMoisEnLettre
DateToMonthInAlpha("20011225") // Returns "December"
MyDate is Date = DateSys() EDT_Date = DateToDayInAlpha(MyDate) + " " + MyDate..Day + ... " " + DateToMonthInAlpha(MyDate) + " at " + ... TimeToString(TimeSys(), "HH:MM:SS") // The EDT_Date control contains for example: Monday 13 August at 14:44:17
Syntax
<Result> = DateToMonthInAlpha(<Date>)
<Result>: Character string Month corresponding to the specified date: January, February, March, April, May, June, July, August, September, October, November, December.
Note: The month returned depends on the linguistic options specified for the dates in the project description ("Project .. Project description", "Languages" tab):Note: The month returned depends on the linguistic options specified for dates in the"Languages" tab of the project description (in the "Project" pane, in the "Project" group, click "Description"):- If the project uses the linguistic options of Windows for the dates, the month will be returned in the language of Windows.
- If the project uses specific parameters for the dates (for one or more languages), the month returned will correspond to the one specified in the project description.
<Date>: Character string (with quotes), Date or DateTime variable Date to use. This date can correspond to: - a character string in YYYYMMDD format (YYYY corresponds to the year, MM to the month and DD to the day).
Versions 24 and latera character string in YYYYMMDDHHMMSSCC format (YYYY corresponds to year, MM to month, DD to day, HH to hour, MM to minutes, SS to seconds and CC to hundredths of a second (use CCC for milliseconds). In this case, only the date is taken into account. New in version 24a character string in YYYYMMDDHHMMSSCC format (YYYY corresponds to year, MM to month, DD to day, HH to hour, MM to minutes, SS to seconds and CC to hundredths of a second (use CCC for milliseconds). In this case, only the date is taken into account. a character string in YYYYMMDDHHMMSSCC format (YYYY corresponds to year, MM to month, DD to day, HH to hour, MM to minutes, SS to seconds and CC to hundredths of a second (use CCC for milliseconds). In this case, only the date is taken into account.- a Date variable.
Versions 24 and latera DateTime variable. In this case, only the date is taken into account. New in version 24a 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.
Remarks The storage format allows you to store dates from 01/01/0001 to 12/31/9999.
Related Examples:
|
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.
|
|
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.
|
Business / GUI classification : Neutral code
This page is also available for…
|
|
|