This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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
jQuery in Action, 3rd edition