This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Java in General and the fly likes Time stamp format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Time stamp format" Watch "Time stamp format" New topic

Time stamp format

munuswamy senthilkumar

Joined: Jun 18, 2004
Posts: 2
how to get the timestamp in the following format
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32507

Welcome to javaranch!

Take a look at the SimpleDateFormat class. It lets you customize the format of a date (timestamp is a subclass of date so it can do timestamps too.)

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
munuswamy senthilkumar

Joined: Jun 18, 2004
Posts: 2
How to get nano second.
Have you checked out Aspose?
subject: Time stamp format
It's not a secret anymore!