This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes 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


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date format problem" Watch "Date format problem" New topic
Author

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.

Regards,
Sree
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
Rancher

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


Joanne
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19977
    
  25

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
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
 
Consider Paul's rocket mass heater.
 
subject: Date format problem