struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vivek jaiswal <vivek_jaiswa...@yahoo.com>
Subject Re: help urgent needs
Date Thu, 22 Nov 2012 08:04:38 GMT
Dear Gaurav,

Get sdate in Date Format in action.
Convert it to String through SimpleDateFormat Class.


SimpleDateFormat dateformat = new SimpleDateFormat("hh:mm:ss");

String stime=dateformat.format(sdate);


regards
VIVEK
www.vivekjaiswal.info


________________________________
 From: Gaurav Tripathi <gaurav.triwari@yahoo.in>
To: "user@struts.apache.org" <user@struts.apache.org> 
Sent: Wednesday, 21 November 2012 4:04 PM
Subject: Fw: help urgent needs
 



----- Forwarded Message -----
From: Gaurav Tripathi <gaurav.triwari@yahoo.in>
To: "user@struts.apache.org" <user@struts.apache.org> 
Sent: Wednesday, 21 November 2012 3:51 PM
Subject: Fw: help




dear sir,
i am a new java beginners and try to use the datetime picker not find the time value to store
in
a proper format . if we use the String to store the time in action class it does not give
in a right format.
plz kindly guide me.
<sx:datetimepicker type="time" label="Ship Time" name="stime" 
displayFormat="hh:mm:ss"></sx:datetimepicker>*/
thanks and regards 
gaurav
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message