aspose file tools*
The moose likes Struts and the fly likes Time is retreiving from the Database to datetimepicker Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Time is retreiving from the Database to datetimepicker" Watch "Time is retreiving from the Database to datetimepicker" New topic
Author

Time is retreiving from the Database to datetimepicker

Mahendran Aiyappan
Ranch Hand

Joined: Sep 05, 2005
Posts: 102
Hi guys,

I have a datetimepicker



myScheduleTime is a java.sql.Date I want the time not the date to this field.

It is showing only 12: 00 only.

Another Question is I have show 12:00 AM / PM. My Question is how to set AM or PM in this field.

Please give me your suggestions.

Thanks
zainu Mehmood
Ranch Hand

Joined: May 09, 2007
Posts: 45
i think You are new to java..........for AM,PM ! you can use very simple logic mean just 1 if,like get time in hours,then see if it is >12 then its P.M,else its A.M..........so simple
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Time is retreiving from the Database to datetimepicker