date:getDatePart(xs:dateTime('date'), 'format')
Argument
| Required/ Optional
| Description
|
---|---|---|
date
| Required
| Date/Time data type.
You can enter any valid transformation expression.
|
format
| Required
| A format string that specifies the portion of the date value that you want to return. Enclose format strings within single quotation marks, for example, 'mm'. The format string is not case sensitive.
For example, if you pass the date 1997-04-01 to getDatePart, the format strings 'YYYY'
returns 1997. |
date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'HH')
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'DD')
|
|
---|---|
|
|
|
|
|
|
|
|
date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'MM')
|
|
---|---|
|
|
|
|
|
|
date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'YYYY')
|
|
---|---|
|
|
|
|
|
|