Thursday, 16 August 2012

Plane number to Date conversion in OBIEE

Converting the number to date is our current requirement. I have read some blogs and found this formula and tried.It is working fine.
CAST ( LEFT( CAST ('our date column' AS CHARACTER ( 10 )), 4) || '/' || SUBSTRING( CAST ('our date column' AS CHARACTER ( 10 )) FROM 5 FOR 2) || '/' || SUBSTRING( CAST ('our date column' AS CHARACTER ( 10 )) FROM 7 FOR 2) AS DATE )
The format of the number is 20120202 which i want as 2012/02/02

1 comment:

  1. hi,

    I want the number 20120202 to ddmmyyyy format. Please help

    thanks,

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...

ShareThis