PowerCenter
- PowerCenter 10.5.6
- All Products
SET_DATE_PART( SHIP_DATE, 'YY', 2001 )
SET_DATE_PART( SHIP_DATE, 'MONTH', 10 )
SET_DATE_PART( SHIP_DATE, 'DD', 10 )
SET_DATE_PART( SHIP_DATE, 'HH', 14 )
SET_DATE_PART( SHIP_DATE, 'MI', 25 )
SET_DATE_PART( SHIP_DATE, 'SS', 59 )
SET_DATE_PART( SHIP_DATE, 'MS', 125 )
SET_DATE_PART( SHIP_DATE, 'US', 12555 )
SET_DATE_PART( SHIP_DATE, 'NS', 12555555 )
SET_DATE_PART(date,format,value)
Argument
| Required/
Optional
| Description
|
---|---|---|
date
| Required
| Date/Time datatype. The date you want to modify. You can enter any valid transformation expression.
|
format
| Required
| Format string specifying the portion of the date to be changed. The format string is not case sensitive.
|
value
| Required
| A positive integer value assigned to the specified portion of the date. The integer must be a valid value for the part of the date you want to change. If you enter an improper value such as February 30, the session fails.
|
SET_DATE_PART( DATE_PROMISED, 'HH', 16 ) SET_DATE_PART( DATE_PROMISED, 'HH12', 16 ) SET_DATE_PART( DATE_PROMISED, 'HH24', 16 )
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
SET_DATE_PART( DATE_PROMISED, 'MM', 6 ) SET_DATE_PART( DATE_PROMISED, 'MON', 6 ) SET_DATE_PART( DATE_PROMISED, 'MONTH', 6 )
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
SET_DATE_PART( DATE_PROMISED, 'Y', 2000 ) SET_DATE_PART( DATE_PROMISED, 'YY', 2000 ) SET_DATE_PART( DATE_PROMISED, 'YYY', 2000 ) SET_DATE_PART( DATE_PROMISED, 'YYYY', 2000 )
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
SET_DATE_PART( SET_DATE_PART( SET_DATE_PART( DATE_ENTERED, 'YYYY', 1998),MM', 7), 'DD', 1)