File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes HowTo use DateFormat static field constants ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "HowTo use DateFormat static field constants ?" Watch "HowTo use DateFormat static field constants ?" New topic
Author

HowTo use DateFormat static field constants ?

Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
How are the static fields of DateFormat (inherited by SimpleDateFormat)such as DAY_OF_YEAR intended to be used (example please)? Could I use it to build a Julian date ?
Thank you.
Carey Evans
Ranch Hand

Joined: May 27, 2008
Posts: 225

DAY_OF_YEAR_FIELD, etc., can be used to return the position at which a data field was formatted. DAY_OF_YEAR_FIELD is SimpleDateFormat's %D, which is not very common. For YEAR_FIELD:It doesn't look like this will help with Julian dates.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: HowTo use DateFormat static field constants ?
 
Similar Threads
How to get tomorrow's date?
How to derive YYYYMMDD from DAY_IN_YEAR?
Date Converting String to Date
Calendar Class
datefiled in dd-mm-yyyy format