WebForm.getFormatType() |
It returns the format type for the specified data type.
Syntax
Script |
WebForm.getFormatType(sDataType) |
You can specify the following data types as a parameter:
- integer
- float
- double
- decimal
- amount
- date
- dateTime
- text
- string
- base64binary
- hexbinary
- anyuri
The parameter must be passed as a string.
Parameters
Parameter |
Description |
---|---|
sDataType |
String. Denotes the data type for which the format type needs to be created. |
Return Value
It returns the format type.
Example
function Form_InitDone(eventObject) { var dateFormatType = WebForm.getFormatType("date"); dateFormatType.setDisplayFormat("shortdate"); return dateFormatType; }