|
-
December 30th, 2002, 05:28 AM
#1
How to display the current date in JSP (dd/MM/yy format)
hi. On my JSP web page I want to display the current date in the SHORT format,i.e, dd/MM/yy. Presently, I am using the line of code below:
<%= new java.util.Date() %>
This displays the date in the foramt below:
Mon Dec 30 14:00 GMT 2002
How do I display the date in the format 31/12/02? Plz help me. I also need to use this format to insert the current date in my database. So this is very important.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|