Application Integration
- Application Integration
- All Products
date:trunc(xs:dateTime('12/1/1997 3:10:15'), 'YY')
date:trunc(xs:dateTime('4/15/1997 12:15:00'), 'MM')
date:trunc(xs:dateTime('6/13/1997 2:30:45'), 'DD')
date:trunc(xs:dateTime('4/1/1997 11:29:35'), 'HH')
date:trunc(xs:dateTime('5/22/1997 10:15:29'), 'MI')
date:trunc(xs:dateTime('5/22/1997 10:15:29.135'), 'SS')
date:trunc(xs:dateTime('5/22/1997 10:15:30.135235'), 'MS')
date:trunc(xs:dateTime('date'), 'format')
Argument
| Required/
Optional
| Description
|
---|---|---|
date
| Required
| Date/Time data type. The date values that you want to truncate. You can enter any valid transformation expression that evaluates to a date.
To pass a NULL value, you must specify an empty sequence in the following format:
()
|
format
| Required
| Enter a valid format string. The format string is not case sensitive.
To pass a NULL value, you must specify an empty sequence in the following format:
()
|
date:trunc(xs:dateTime('DATE_SHIPPED'), 'Y') date:trunc(xs:dateTime('DATE_SHIPPED'), 'YY') date:trunc(xs:dateTime('DATE_SHIPPED'), 'YYY') date:trunc(xs:dateTime('DATE_SHIPPED'), 'YYYY')
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
date:trunc(xs:dateTime('DATE_SHIPPED'), 'MM') date:trunc(xs:dateTime('DATE_SHIPPED'), 'MON') date:trunc(xs:dateTime('DATE_SHIPPED'), 'MONTH')
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
date:trunc(xs:dateTime('DATE_SHIPPED'), 'D') date:trunc(xs:dateTime('DATE_SHIPPED'), 'DD') date:trunc(xs:dateTime('DATE_SHIPPED'), 'DDD') date:trunc(xs:dateTime('DATE_SHIPPED'), 'DY') date:trunc(xs:dateTime('DATE_SHIPPED'), 'DAY')
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
date:trunc(xs:dateTime('DATE_SHIPPED'), 'HH') date:trunc(xs:dateTime('DATE_SHIPPED'), 'HH12') date:trunc(xs:dateTime('DATE_SHIPPED'), 'HH24')
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
date:trunc(xs:dateTime('DATE_SHIPPED'), 'MI')
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
|
|