These helpers provide some ability to manage date and time data.
| Summary | Generate a formatted date string |
| Returns | Formatted datetime if possible, otherwise the input |
| Remarks | |
| Parameters | |
| input | Input string to try formatting |
| format | A standard or custom date and time format string |
Context
{
"datetime": "2019-03-12T15:45:00Z"
}Usage
Returns
<strong>result:</strong>
Mar. 12 2019
03/12/2019| Summary | Output formatted current date string using the specified time zone id, default format "MM/dd/yyyy" |
| Returns | Formatted current date |
| Remarks | |
| Parameters | |
| format | A standard or custom date and time format string |
| timeZoneName | Time Zone Name e.g. "Eastern Standard Time" |
Usage
Returns
<strong>result (assuming local date time as 12-Mar-2019 09:00:00 AM [India Standard Time]):</strong>
1: 03/12/2019
2: 03/12/2019
3: Mar. 12 2019
4: 2019-03-12T00:00:00Z
5: 03/11/2019
6: 03/12/2019
7: 03/12/2019