Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Beans > date formatting...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1384 of 1403
Post > Topic >>

date formatting in JSP

by Damon Getsman <dgetsman@[EMAIL PROTECTED] > Aug 28, 2008 at 01:53 PM

I have a date being passed to a sub as a java string in the following
format:
2008-07-11 15:30:00.0

Does anybody know a simple method to turn this into a java.util.Date
object so that I can access ouah.hours, ouah.minutes. ouah.seconds,
ouah.month, ouah.date, ouah.year?

I know it's a very basic question but I haven't been able to find
anything worthwhile on google yet, and I have to keep working on this
project now despite the fact that my texts on JSP/JSTL don't get here
until Monday.

I know that in Java it would be as simple as formulating a
java.text.DateFormat.parse('string') or
java.text.SimpleDateFormat.parse('string'), but I don't know how to do
this from within my JSP.

TIA

ITrx
http://www.lookupanyone.com/namelistings/damon-getsman-andrew-getson.html
Damon Getsman
 




 2 Posts in Topic:
date formatting in JSP
Damon Getsman <dgetsma  2008-08-28 13:53:17 
Re: date formatting in JSP
Damon Getsman <dgetsma  2008-08-28 14:17:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 0:14:51 CST 2008.