Altova MapForce 2024 Professional Edition

Returns the current date and time (including timezone), as an xs:dateTime value.

mf-func-now

 

Languages

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

 

Example

The following mapping outputs the current date and time. The output changes each time when the mapping runs.

mf-func-now-example

An example output would be 2020-04-17T11:42:34.684+02:00.

 

For an example on how to extract yesterday's date, see the core | lang | datetime-add function.

© 2017-2023 Altova GmbH