I need to convert string to date format

Eight Stars RAJ
Eight Stars

I need to convert string to date format

Hi Folks,

 

  • When I import my excel in talend
  • My date column datatype is string.
  • My date column value is there in this format (42905).
  • Please help me how to convert this number to date .

 

 

Thanks
RAJ
Eight Stars

Re: I need to convert string to date format

what is this 42905 means for MDDYY??

 

Can you specify the date format.. 

Eight Stars RAJ
Eight Stars

Re: I need to convert string to date format

this is the format MDDYY

Thanks
RAJ
Eight Stars

Re: I need to convert string to date format

Add Variable Port  named:
FormatDate  = row2.Dated.length()==5?"0"+row2.Dated:row2.Dated 

In the tMap Output: 

TalendDate.parseDate("MMDDYY",Var.FormatDate) 

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

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download