aspose file tools
The moose likes Java in General and the fly likes Java Date formatting doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Java Date formatting doubt" Watch "Java Date formatting doubt" New topic
Author

Java Date formatting doubt

Naga Venkata Pradeep Namburi
Greenhorn

Joined: Apr 04, 2008
Posts: 13
Hi,
I need to format a date in ccyyDDD format.
Is there any such format?
Please explain.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
Date formatting is done using the java.text.SimpleDateFormat class. Its javadocs list in detail all the available options.


Android appsImageJ pluginsJava web charts
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32657
    
    4
You may be able to print such a format with the % tags in the java.util.Formatter class.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Java Date formatting doubt
 
Similar Threads
is that any utility class that help compare date within start and end date ?
Conversion of date to Arabic
how to convert String into Date format
<bean:write/> of struts1
Another format check :P