Altova MapForce 2025 Professional Edition

Adjusts an xs:date value to the implicit time zone in the evaluation context (the system's time zone).

mf-func-xpath2-adjust-date-to-timezone

 

Languages

XQuery, XSLT 2.0, XSLT 3.0.

 

Parameters

Name

Type

Description

date

xs:date

The input value of type xs:date.

 

Example

The following mapping constructs an xs:date from a string and supplies it as argument to the adjust-date-to-timezone function.

mf-func-xpath2-adjust-date-to-timezone-example

XSLT 2.0 mapping

If the mapping runs on a computer where the system time zone is +02:00, the function adjusts the date value to include the system's time zone. Consequently, the mapping output is 2020-04-30+02:00.

© 2018-2024 Altova GmbH