PowerCenter
- PowerCenter 10.5
- All Products
IS_DATE(value[,format] )
Argument
| Required/
Optional
| Description
|
---|---|---|
value
| Required
| Must be a string datatype. Passes the rows you want to evaluate. You can enter any valid transformation expression.
|
format
| Optional
| Enter a valid TO_DATE format string. The format string must match the parts of the
string argument. For example, if you pass the string 'Mar 15 1997 12:43:10AM', you must use the format string 'MON DD YYYY HH12:MI:SSAM'. If you omit the format string, the string value must be in the date format specified in the session.
|
IS_DATE( INVOICE_DATE )
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
IS_DATE( INVOICE_DATE, 'YYYY/MM/DD' )
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IIF( IS_DATE ( INVOICE_DATE, 'YYYY/MM/DD' ), TO_DATE( INVOICE_DATE ), ERROR('Not a valid date' ) )
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|