A friendly place for programming greenhorns!
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
Author
Java Date formatting doubt
Naga Venkata Pradeep Namburi
Greenhorn
Joined: Apr 04, 2008
Posts: 13
posted
Dec 09, 2008 03:18:00
0
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
posted
Dec 09, 2008 04:04:00
0
Date formatting is done using the
java.text.SimpleDateFormat
class. Its javadocs list in detail all the available options.
Android apps
–
ImageJ plugins
–
Java web charts
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32657
4
posted
Dec 09, 2008 04:43:00
0
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter