on ‎2009 Sep 24 9:28 AM
Hi,
We use Data Integrator 11.7.3.4, the source and target databases are Oracle 10g.
We need to convert a datetime column ('01/01/2009 17:13:00') to a simple date ('01/01/2009 00:00:00').
In a query transform, I tried changing the right column type from 'datetime' to 'date' , but with no success.
Is there a clean way to remove the time from a datetime (using to_char then to_date isn't one) ? Setting the time to '00:00:00' would achieve the same goal by the way.
Thanks !
Request clarification before answering.
Yes, I would to_date(to_char()) it
to_date(to_char(sysdate(), 'YYYY.MM.DD'), 'YYYY.MM.DD')
A trunc(date, 'DAY') function would be nice, wouldn't it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.