File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Time is retreiving from the Database to datetimepicker

 
Mahendran Aiyappan
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic