Returns the required date format which is sought against the selected date component. The value of the output format will be stored in the declared variable as well as in the control value. Sets the format of Date Display like dd/mm/yy, mm/dd/yy etc.
Smartcode
Syntax
GetDateFormat()
Parameters
variable(Required) – Name of the variable to store the output format value
- String – A-Z, 0-9
- Length – 50 Characters
controlname(Required) – Select the name of the date control to be formatted
outputformat(Required) – Specify the format to be applied like yyyy-mm-dd,dd/mm/yy etc.
Directcode
Orefuncs.getDateFormatbyControl
Example
var finalformat=await Orefuncs.getDateFormatbyControl(“<<control name>>”,this.state, “YYY-MM-DD”)