File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes date stamp format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "date stamp format" Watch "date stamp format" New topic

date stamp format

Dmitry Shekhter

Joined: Feb 21, 2001
Posts: 26
Hi all,
I'm looking to create a date/time stamp that would put the creation-time of a file in the following date/time format
yyyymmddhhmmss ... I can't seem to find a way to do that, I've looked at the Date, and Timestamp classes, maybe I'm missing something. Could someone show me how this works?
Thanks in advance
Joel McNary

Joined: Aug 20, 2001
Posts: 1824

look at the java.text.DateFormat class

Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Dmitry Shekhter

Joined: Feb 21, 2001
Posts: 26
Thank you Joel
I agree. Here's the link:
subject: date stamp format
It's not a secret anymore!