This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes how to get system date and format it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to get system date and format it" Watch "how to get system date and format it" New topic
Author

how to get system date and format it

Bhasker Reddy
Ranch Hand

Joined: Jun 13, 2000
Posts: 176
I am trying to save a xml file. I want to retrieve
the system date and name the file as systemdate
stamp like mmddyyhrminutes(in this format).
Do you know how to retrieve system date and
format it in that way


Bhasker Reddy
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Check out the SimpleDateFormat class.
 
 
subject: how to get system date and format it
 
Similar Threads
<bean:write/> of struts1
how to get system date and format it
How to get System Date and time
How to get System Date and time
compare two dates thru Calendar