Date format

S

Steven

Hi All,

How would I get a date format like : 04APR2005 ?

I've got <%=DateFormat.getDateInstance(DateFormat.LONG).format(new Date())%>
But this displays 04 April 2005

Thanks for any help!
 
R

Roland

Hi All,

How would I get a date format like : 04APR2005 ?

I've got <%=DateFormat.getDateInstance(DateFormat.LONG).format(new Date())%>
But this displays 04 April 2005

Thanks for any help!
new java.text.SimpleDateFormat("ddMMMyyyy").format(new
java.util.Date()).toUpperCase()

--
Regards,

Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top