A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
change the date format from db to jsp
Joined: Nov 02, 2007
Mar 19, 2008 00:29:00
In database i have date format in 19/03/2008 while i retrive the value in
, i need 19 march 2008 in this format.. can anyone tel me.
Joined: Dec 19, 2004
Mar 19, 2008 01:18:00
its possibble in 2 ways
1) by converting the date in the db query itself by using to_date
2) by using simpleDateFormat in
Author and ninkuma
Joined: Jan 10, 2002
Mar 19, 2008 08:33:00
If you are retrieving the date as a Date instance (rather than a
), you can simple use the <fmt:formatDate> JSTL tag on the JSP.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: change the date format from db to jsp
Time Zone problem
How to check a date is within range of dates ?
Changing eclipse variables
Date Time Format
Convert String to sql.Date
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014