cancel
Showing results for 
Search instead for 
Did you mean: 

Need to change the date format in the ess participation iview

Former Member
0 Kudos

Hi Experts,

Right now the date is displaying in the format yyyy-mm-dd so my requirement is that the date format should be displayed in mm-dd-yyyy.So please suggest me in doing this like can we write a peace of code in webdynpro java or else need to change any thing to get the date in desired format.

Thanks in advance.

Harish.K.

Edited by: kommeraharish on Nov 5, 2009 6:14 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Harish,

You can write the peice of code mentioned above, but if you have more than one dates to format, always create a simple type of Built-In type Date with Representation as mm-dd-yyyy

Using Simple Types is a good practice.

Hope this helps you.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Already lots of thread discuss about Date format.

try this


   String DATE_FORMAT = "mm-dd-yyyy";
   SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
   String fromDate=sdf.format(wdContext.currentContextElement().get<Your Date Attribute>());

Regards,

Manivannan.P

Edited by: manivannan palanisamy on Nov 5, 2009 6:58 AM