Format date and time
With this function you can perform some date and time transformations like changing the format of a given date, adding days or hours to a date, etc.
Configuration​
Input parameters​
Section | Parameters | Usage | Mandatory |
---|---|---|---|
General | Method | The change we want to apply to the date/time, which can be: Format Time, Add Time or Subtract Time. | Yes |
Insert your DateTime | Date and/or time to modify. Leaving this empty will take current date and time. | No | |
Select an input format for the date inserted | Indicate the format of the given date/time. | Yes | |
Format Time* | Select your date zone | Date zone of the given date | Yes |
Select your output datetime format | Format desired for the output | Yes | |
Add Time* | Years | Number of years to add to the date | No |
Months | Number of months to add to the date. | No | |
Days | Number of days to add to the date. | No | |
Hours | Number of hours to add to the date/time. | No | |
Minutes | Number of minutes to add to the date/time. | No | |
Subtract Time* | Years | Number of years to subtract to the date | No |
Months | Number of months to subtract to the date. | No | |
Days | Number of days to subtract to the date. | No | |
Hours | Number of hours to subtract to the date/time. | No | |
Minutes | Number of minutes to subtract to the date/time. | No |
*Different input parameter sections will appear depending on the method chosen.
This is what different methods do:
- Format Time: Format a given a date/time string as desired
- Add Time: Add time to a given date
- Subtract Time: Subtract time to a given date
Response parameters​
Parameter | Usage |
---|---|
result | The output of the operation. |
error | An error message if exist. |
Format date and time with languages​
The difference between the simple one and this is that we can add a language code for the output.