|
- Overview
- Reminder
- Default mask
- The preset masks
- Additional mask
- The custom masks
The Date edit control: Input or display masks
Reminder WINDEV, WINDEV Mobile and WEBDEV propose two types of masks: - the input masks that define the characters that can be typed in the controls found in a window or in a page. Sometimes, these masks can also be used to modify the case (uppercase/lowercase characters) of the values assigned to the window controls or to the page controls through programming.
- the display masks that define the characters that can be:
 displayed in the window controls. - printed in the report controls.
By default, when creating a Date control: - the "Date defined by the project" input mask is selected: the information defined in the parameters for managing the dates for the project is automatically taken into account. Reminder: These parameters are defined for each language in the "Languages" tab of project description:
- On the "Project" tab, in the "Project" group, click "Description".
- Select the "Languages" tab then the "Date" tab.
- The format used corresponds to:
- the settings of the operating system,
- the specified parameters (with the defined days and months).
 the "Same mask as the input" display mask is selected.
Remarks: - In a report, when creating a preset Date control, the wizard allows you to select the display format of the control.
- A list of preset masks is proposed in the description window of the control. You can:
- select a preset mask.
- create a custom mask.
The following elements can be used to define a custom mask (case sensitive): - 'DDDD' (corresponding day of the week, "Thursday" for example. The case used depends on the linguistic options of the project.)
- 'Dddd' (corresponding day of the week with the first letter in uppercase, for example: Monday)
This notation is not available. - 'dddd' (corresponding day of the week with the first letter in lowercase, for example: monday)
This notation is not available. - 'DDD' (abbreviation of the day of the week, "Thu" for example)
- 'Ddd' (abbreviation of the day of the week with the first letter in uppercase, for example: Mon)
This notation is not available. - 'ddd' (abbreviation of the day of the week with the first letter in lowercase, for example: mon)
This notation is not available. - 'DD' (date in digits, "25" for example)
- 'MMMM' (month spelled out, "January" for example. The case used depends on the linguistic options of the project.)
- 'Mmmm' (month spelled out with the first letter in uppercase, for example: January)
This notation is not available. - 'mmmm' (month spelled out with the first letter in lowercase, for example: january)
This notation is not available. - 'MMM' (abbreviation of the month, "Jan" for example)
- 'Mmm' (abbreviation of the month with the first letter in uppercase, for example: Jan)
This notation is not available. - 'mmm' (abbreviation of the month with the first letter in lowercase, for example: jan)
This notation is not available. - 'MM' (month in digits, "06" for example)
- 'YYYY' (year on four digits, "2001" for example)
- 'YY' (last two digits of the year, "01" for example)
- 'HH' (hour in digits, "13" for example)
- 'mm' (minutes in digits, "32" for example)
- 'SS' (seconds in digits, "46" for example)
These masks can be combined. For example: 'DDD DD MMMM YYYY at HH:mm' will return a result in the following format: "Fri 02 February 1979 at 21:35".
This page is also available for…
|
|
|
|
|
|
|