Get Current DateTime String
Last modified: November 19, 2024
Description
Returns the current date and time in supplied format (Java date format) (for example, yyyy-MM-dd HH:mm:ss
).
Usage
Pass the format for the datetime. For more information about formatting datetime in Java, see the SimpleDateFormat Java reference.
Input Parameters
Name | Datatype | Required | Description |
---|---|---|---|
Datetime Format | String | yes | The Java datetime format definition to format the datetime (for example, dd.MM.yyyy ). |
Return Value
Name | Datatype | Description |
---|---|---|
CurrentDateTime | String | A string representation of the current datetime formatted accordingly (for example, 27.07.2020 ). |