Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

format date in jsp

I have a date in yyyy-mm-dd format stored in a string.

I want to display the date in dd-mmm-yyyy format in jsp.

please provide me the code for the same.

Get 10 pts for right answer.

Former Member
Former Member replied

Hi anzar naik,

Try this,

SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-YYYY");

Date beforeDate=null;


Hope it will help you. Thanks.


Kathiresan R


Points are welcome

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question