Extract Date,Month and Year in Tmap??????

Nine Stars

Extract Date,Month and Year in Tmap??????

Hi,

Can i extract date and month and year from a date ... in Tmap,..

How about dayno and weekno???

if yes,then how..???

Pls help 

thanks in advance.

Ankit


Accepted Solutions
Employee

Re: Extract Date,Month and Year in Tmap??????

Hi,

 

    It is quite easy. You will have to just change the format of the column having date. Please see the screenshots below.

 

image.png

 

The output of the above tmap is as shown below.

image.png

 You can refer all different options of Date from below link.

 

https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

 

Hope I have answered your query. Could you please mark the topic as resolved? Kudos are also welcome :-)

 

Warm Regards,

 

Nikhil Thampi

 

 

Tags (1)

All Replies
Employee

Re: Extract Date,Month and Year in Tmap??????

Hi,

 

    It is quite easy. You will have to just change the format of the column having date. Please see the screenshots below.

 

image.png

 

The output of the above tmap is as shown below.

image.png

 You can refer all different options of Date from below link.

 

https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

 

Hope I have answered your query. Could you please mark the topic as resolved? Kudos are also welcome :-)

 

Warm Regards,

 

Nikhil Thampi

 

 

Tags (1)

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

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

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch