
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Convert string to date
Hi,
I have my string input 01012021 and i need to convert it to date output 01/01/2021 in my tmap. How can i do that? Thank you!
Regards,
Enrique
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
TalendDate.parseDate("ddMMyyyy",here your input string)
Send me Love and Kudos

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
TalendDate.parseDate("ddMMyyyy",here your input string)
Send me Love and Kudos

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you'r welcome , in your output schema set a pattern for your date : "dd/MM/yyyy", if you want the date as you mention.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I get an error because there is a null value in my input. How do you set a condition to ignore the value when it's null or do TalendDate.parseDate("ddMMyyyy",input) when it is not null? Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can write (your input) != null
in the expression filter of the tMap output

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey Thanks a lot, but I am having one issue I got "ERROR: timestamp out of range". my string is a timestamp I want to make it as a timestamp (Date)
my timestamp is - "1631898440"
please help 😞
