Skip to main content Skip to complementary content


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.


  1. Input datetime.
  2. 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


Expression Result
formatDateTime(getCurrentDateTime(), "YY-dd-MM'T'HH:mm") "22-13-07T11:43"

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!