formatDateTime
Creates a string containing a datetime value with a specific pattern from a datetime.
Information noteNote: This feature is only available in
Talend Cloud Pipeline Designer and Talend Data Mapper.
Arguments
- Input datetime.
- Datetime pattern as a string:
- yyyy for the year
- MM for the month
- dd for the day
- HH for the hours
- mm for the minutes
- ss for the seconds
- SSS for a fraction of a second
- ZZZZZ for the time zone
Examples
Expression | Result |
---|---|
formatDateTime(getCurrentDateTime(), "YY-dd-MM'T'HH:mm") | "22-13-07T11:43" |