how to split day month year from a date format

Eight Stars

how to split day month year from a date format

hello,

i have a birth_date column '1962-02-19 00:00:00'  "yyyy-MM-dd" format

i want to split birthday-month-year and load it to three different database table.

 

please help me out

 

Thanks & regards

Manish

Sixteen Stars TRF
Sixteen Stars

Re: how to split day month year from a date format

TalendDate.getPartOfDate

TRF
Nine Stars

Re: how to split day month year from a date format

You could use tExtractRegexFields to split your input data into three parts.

Something like this - 

tFixedFlowInput-5.JPG

And have your regular expression defined as -

"([0-9]*)-([0-9]*)-([0-9]*)"

and the schema as -

tExtractRegexFields-1.JPG

 

Once you have done with your data split then you could have your database output defined accordingly.

Forteen Stars

Re: how to split day month year from a date format

@vitspltalend,please find below tMap configuration,you can implement in this way also.Untitled.png

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Forteen Stars

Re: how to split day month year from a date format

you can convert belo way also.

Untitled.png

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.

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 2

Part 2 of a series on Context Variables

Blog

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