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 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