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.

replied

Hi anzar naik,

Try this,

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

Date beforeDate=null;

beforeDate=sdf.parse(Your_Date);

Hope it will help you. Thanks.

Regards,

Kathiresan R

Note:

Points are welcome

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