on ‎2018 Sep 05 6:46 PM
Hi,
I want to convert some timestamp values which are coming from a Text file source into "Timestamp" datatype, before loading them to the target table (Oracle). The values are in the format as given in below sample, and are in text format.
2018-06-06T10:24:15.9803868+08:00
Can you please advise
Thanks,
David
Request clarification before answering.
david.krn
Try below option.
to_date('2018-06-06T10:24:15.9803868+08:00','YYYY-MM-DDTHH24:MI:SS.FF')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello David,
I tried replicating your scenario:
Source:

Source in BODS:

Mapping:

Logic:

I used cast function to avoid conversion warnings, you can try without cast if source records are less.
(Cast function impacts performance to some extent)
After job execution:

Output in Target database(Oracle):


I've attached the .txt file used for testing.
Hope it helps! 🙂
Reward if useful.
Thanks,
Rajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 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.