Sometimes it is necessary to obtain a date from the "non-standard" text string and use it directly in the filter or in the calculation.Example: To view data for previous 24 months from the month of '2009 / 01 '. It is a simple filter, where time we want to limit by:
The Oracle database would be trivial using to_date ('2009 / 01 ',' YYYY / MM ') or to_timestamp ('2009 / 01', 'YYYY / MM'). OBI EE directly provides only two way to make text date or timestamp and using functions:
- Convert string to date
- Subtracting 24 months.
The Oracle database would be trivial using to_date ('2009 / 01 ',' YYYY / MM ') or to_timestamp ('2009 / 01', 'YYYY / MM'). OBI EE directly provides only two way to make text date or timestamp and using functions:
- DATE 'YYYY-MM-DD HH: MM: SS' and TIMESTAMP 'YYYY-MM-DD HH: MM: SS'
- CAST ('nls_date_format' as date) and CAST ('nls_timestamp_format' as timestamp)