Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

date stamp format

 
Dmitry Shekhter
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look at the java.text.DateFormat class
 
Dmitry Shekhter
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Joel
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic