Question
1
Replies
558
Views
Infosys
Posted: May 11, 2017
Last activity: May 12, 2017
Closed
Date Time
Hi, I have a property "fundingDate" whose data type is "Date" when i entered a date it's showing Date in this format ( "20170511" ) in Clip board, so is there any way to arrange the date in proper format with seperators like "2017/05/11"
Actually I want to use that date in Email Subject but its showing Like this : 20170511 and i want its should be display : 2017/05/11
So is there any way to do this
***Updated by moderator: Lochan to update Categories***
Hi Mahesh,
How are you fetching the date from the clipboard and sending it to the email subject?
You can assign this date value to a text property. If you are using an activity, you can create two variables - fundingdate and changeddate.Assign the fundingDate value to the fundingdate varable. Then use the following java code:
changeddate=fundingdate.substring(0,4);
changeddate=changeddate+"/";
changeddate+=fundingdate.substring(4,6);
changeddate=changeddate+"/";
changeddate+=fundingdate.substring(6,8);
Finally, reassign the value of changeddate local variable to the text property created initially. Use this property value in your email subject.
Hope this helps.