• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Time is retreiving from the Database to datetimepicker

 
Ranch Hand
Posts: 102
  • 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
 
Ranch Hand
Posts: 45
  • 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
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic