Data Integration-Free and PayGo
- Data Integration-Free and PayGo
- All Products
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 Apr 1 1997 to getDatePart, the format strings 'Y', 'YY', 'YYY', or 'YYYY' all return 1997.
|
date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'HH') date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'HH12') date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'HH24')
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'D') date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'DD') date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'DDD') date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'DY') date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'DAY')
|
|
---|---|
|
|
|
|
|
|
|
|
date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'MM') date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'MON') date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'MONTH')
|
|
---|---|
|
|
|
|
|
|
date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'Y') date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'YY') date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'YYY') date:getDatePart(xs:dateTime('DATE_SHIPPED'), 'YYYY')
|
|
---|---|
|
|
|
|
|
|