dateFormatPattern
|
Specifies the date format code used to format any date selected in the ComboBox before it is sent to a database query. (See Radio Button/Check Box/Combo Box Properties for information on the 'Format Date Values Sent to Query' option.) This property should be set in the onInit handler. (See Add Dashboard Script for more information about handlers.)
The queryDateFormat property must be set to true to apply the format pattern.
|
Type
- String
-
A date format code. (See Date Format for format codes.) The following restrictions apply:
-
Only the following format tokens are permitted:
y,M,d -
Only the following separators are permitted:
-,/,., comma, space -
A year token is required:
yyoryyyy -
A month token is required:
MorMM -
A day token is required:
dordd
-
Example
ComboBox1.dateFormatPattern = 'yyyy-MM-dd';
|
Either syntax below can be used in component script:
For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required. |