wood burning stoves 2.0*
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 Spring in Action this week in the Spring 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to get system date and format it