# makeDateTime

Creates a datetime from a date and a time.

Information noteNote: This feature is only available in Talend Cloud Pipeline Designer and Talend Data Mapper.

The time zone is defined based on the arguments. If a time zone is provided, that time zone is used, otherwise the datetime is returned without a time zone.

## Arguments

1. Input date as a string, date, or datetime data type.
2. Input time as a string, time, or datetime data type.

## Examples

| Expression | Result |
| --- | --- |
| $date = toDate("2021-01-02"), makeDateTime($date,<br>"13:45-01:00") | 2021-01-02T13:45-01:00 |