how to split day month year from a date format

Seven 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

Fifteen Stars TRF
Fifteen 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.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog