# 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

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

## Examples

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