This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes I just want the Date ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I just want the Date !" Watch "I just want the Date !" New topic

I just want the Date !

Dave Jones
Ranch Hand

Joined: Feb 20, 2005
Posts: 77
Hello all,
Checking the API I've found 3 or 4 different classes dealing with 'Date'
in some, most methods are deprecated...
I just need to get the current date in a String format ( e.g 27.3.05 22:35 or something similar)
This is supposed to be simple but I'm just confused
Thanks all
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14953

Very simple:

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Dave Jones
Ranch Hand

Joined: Feb 20, 2005
Posts: 77
thanks a lot, that's exactly what I needed clean and simple!
Have you checked out Aspose?
subject: I just want the Date !
It's not a secret anymore!