Six Stars

how to get date in string format

I need to get date in string format like 09 january 2017. 

i need to pass this value in output excel

2 REPLIES
Nine Stars

Re: how to get date in string format

TalendDate.formatDate("any format you want", yourDateValueAsADateType)
Six Stars

Re: how to get date in string format

TalendDate.formatDate("dd MMMM yyyy",TalendDate.getCurrentDate()) to populate your output field which must be declared as a String.

 

 

TalendDate.getCurrentDate() replace this with your date field input.

Regards
Aashish
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.