File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Date format problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date format problem" Watch "Date format problem" New topic

Date format problem

sreedhar Lackka
Ranch Hand

Joined: Jul 05, 2008
Posts: 154
Hi All,
Thanks a lot in advance.
I want to print date in some predefined format without using SimpleDateFormat class. Is it possible to complete in otherway.

Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

You can always do your own Date conversion coding - but I don't recoment it.

Regards, Rene Larsen
Dropbox Invite
Joanne Neal

Joined: Aug 05, 2005
Posts: 3166
It will help us to avoid making unsuitable suggestions if you tell us why you don't want to use SimpleDateFormat.

Rob Spoor

Joined: Oct 27, 2005
Posts: 19541

The only reason I can imagine is an environment that does not have (Simple)DateFormat, like Java ME.

How To Ask Questions How To Answer Questions
Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
Of course why not. Just read the desired date fragments (hour, day, month etc.) and place them in appropriate order using String concatenation.

My Blog
I agree. Here's the link:
subject: Date format problem
Similar Threads
how to convert String into Date format
Another format check :P
is that any utility class that help compare date within start and end date ?
Conversion of date to Arabic
<bean:write/> of struts1