This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 3432
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: 19655

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
<bean:write/> of struts1
how to convert String into Date format
Conversion of date to Arabic
is that any utility class that help compare date within start and end date ?
Another format check :P