| Author |
Need date Format help
|
Leena Diwan
Ranch Hand
Joined: Jun 18, 2001
Posts: 351
|
|
Hello Friends, I need to mormat my date valye to get something like the following: Sunday December 3rd, 2006 OR Tuesday December 5th, 2006 I understand that one can give a custom format for date as per the SimpleDateFormat symbols. However, I did not find anything for achieveing the pattern in bold Can you please help? Regards, Leena
|
[SCJP2, SCWCD1.3, SCBCD]
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
the pattern in bold
Sorry but I can't see anything in bold in your message. Can you explain which part you are talking about ?
|
[My Blog]
All roads lead to JavaRanch
|
 |
Leena Diwan
Ranch Hand
Joined: Jun 18, 2001
Posts: 351
|
|
Originally posted by Leena Diwan: Sunday December 3rd, 2006 OR Tuesday December 5th, 2006
Sorry for that.. Now its bold  [ March 02, 2007: Message edited by: Leena Diwan ]
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56218
|
|
|
There is no pattern that will emit 1st, 2nd, 3rd and so on. You'll need to be satisfied with 1, 2, 3 ...
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Karthik Srikanti
Greenhorn
Joined: Sep 20, 2006
Posts: 11
|
|
|
Like Bear said, there is no pattern to give you 3rd, 6th like that. But if its absolutely necessary for your project you can use some javascript scripting with logic to change the value after its displayed on the page. You can have it at the end of the page so it fires before the page is loaded.
|
{ SCJP, SCWCD, SCBCD, OCA (DBA) }
|
 |
aman hindustani
Ranch Hand
Joined: Jun 15, 2006
Posts: 53
|
|
|
leena ...if you use calenders(javascripts css files) ..you may find the desired result
|
 |
 |
|
|
subject: Need date Format help
|
|
|