Altova MapForce 2022 Professional Edition

Returns a value of type xs:dateTime built from any combination of the following parts as arguments: year, month, day, hour, minute, second, millisecond, and timezone. This function automatically normalizes the supplied parameters. For example, 32nd of January will automatically be changed to 1st of February.

mf-func-datetime-from-parts

 

Languages

Built-in, C++, C#, Java.

 

Parameters

Name

Type

Description

year

xs:int

Provides the year.

month

xs:int

Provides the month.

day

xs:int

Provides the day of the month.

hour

xs:int

Optional. Provides the hour.

minute

xs:int

Optional. Provides the minute.

second

xs:int

Optional. Provides the second.

millisecond

xs:decimal

Optional. Provides the millisecond.

timezone

xs:int

Optional. Provides the timezone, in minutes. This value can be negative.

 

Example

The following mapping constructs an xs:dateTime value from parts that are supplied by constants.

mf-func-datetime-from-parts-example

The mapping output is 2020-04-17T08:58:54.333-01:00.

 

© 2016-2022 Altova GmbH