[resolved] Date formatting problem XML --> Oracle

One Star

[resolved] Date formatting problem XML --> Oracle

I am trying to convert XML into Oracle. The date formats are not coming out correctly and I can't figure out what I have wrong. It has every date converting to Jan. Attached are screen prints to show the input and the output, debug and tMap
Seven Stars

Re: [resolved] Date formatting problem XML --> Oracle

It's because you've defined the Date Patterns in tFileInputXML as "yyyy-mm-dd-hh:mm" when they should be "yyyy-MM-dd-hh:mm". mm is minutes, MM is months.
You should also check your hours setting: hh is 12-hour time (01-12), HH is 00-23.
One Star

Re: [resolved] Date formatting problem XML --> Oracle

Thanks! I'm still getting used to Talend and missed the date formatting error.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog