format-date

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Functions > Function Library Reference > core | conversion functions >

format-date

Converts an xs:date input value into a string and formats it according to specified options.

format-date

Argument

Description

value

The date to be formatted.

format

A format string identifying the way in which the date is to be formatted. This argument is used in the same way as the format argument in the format-dateTime function.

language

Optional argument. When supplied, the name of the month and the day of the week are returned in a specific language. Valid values:

 

en (default)

English

es

Spanish

de

German

ja

Japanese

 

In the following example, the output result is: "21 August 2014, Thursday". To translate this value to Spanish, set the value of the language argument to es.

 

format-date(example)


© 2019 Altova GmbH