Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date Conversion Issue

Hi,

I have an Excel sheet with a date column in the format below

Date
41575
31576
42578
34423

I want to convert it into the following format.

Date
2013-10-28
1986-06-13
2016-07-27
1994-03-30

Please help me.

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

Hi,

 

if read column as integer, and use in tMap

TalendDate.addDate(TalendDate.parseDate("yyyy-MM-dd","1900-01-01"),row1.date_add - 2,"dd") 

result will be as expected:

|date      |
|=--------=|
|2013-10-28|
|1986-06-13|
|2016-07-27|
|1994-03-30|
'----------'

 

 

 

View solution in original post

2 Replies
vapukov
Master II
Master II

Hi,

 

if read column as integer, and use in tMap

TalendDate.addDate(TalendDate.parseDate("yyyy-MM-dd","1900-01-01"),row1.date_add - 2,"dd") 

result will be as expected:

|date      |
|=--------=|
|2013-10-28|
|1986-06-13|
|2016-07-27|
|1994-03-30|
'----------'

 

 

 

Anonymous
Not applicable
Author

Hi @vapukov 

 

Many thanks, the issue has been resolved.