A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Struts + Display tag.
Joined: Sep 07, 2008
Oct 23, 2008 04:21:00
Hello every one ,
I am using Struts 2 + hibernate with Display tag.
In my database there are one table colon date contains date only not time like : - 2002-10-17
and same another table contains time only like : - 11:48:19.
My question is when i select record from data base and display it with <display:column then it display date like :- 2008-10-17 00:00:00.0 and
time like :- 1970-01-01 11:48:19.0
but i want Date :- 2008-10-17 and time :- 11:48:19.0 only.
Please give me suggestion for this ASAP how I can format this date and time in display tag.
Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD
It is sorta covered in the
JavaRanch Style Guide
subject: Struts + Display tag.
count by current timestamp
Convert Local time to UTC and vice versa
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014