• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Simple Date and Time picker in JSP

 
Greenhorn
Posts: 26
MySQL Database Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Please help me in adding date and time picker to a JSP. I really don't have any idea for implementing.

Thanks,
Khadar.
 
Saloon Keeper
Posts: 7582
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's really an HTML/JavaScript issue - the fact that the page was created by a JSP makes no difference.

Start by picking an existing date picker and check how it works, maybe something like http://jqueryui.com/datepicker/
 
Marshal
Posts: 8856
637
Mac OS X VI Editor BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, welcome to the Ranch.

I believe you'll have to provide more details on what have you tried and where you stuck at. Currently your provided information isn't sufficient, so don't expect to get much of a help if any, based on that.
 
khadar valli
Greenhorn
Posts: 26
MySQL Database Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Vilda,

Actually my requirement is to take the date and time from the user. As of now i had used text field for this. but i wanted to make it easier by using date and time picker. I am not aware of this implementation. I wanted to know the process to achieve this.

Thanks,
Khadar.
 
khadar valli
Greenhorn
Posts: 26
MySQL Database Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:That's really an HTML/JavaScript issue - the fact that the page was created by a JSP makes no difference.

Start by picking an existing date picker and check how it works, maybe something like http://jqueryui.com/datepicker/




Thanks @Moores, But I want to accept both date and time as well.

Thanks,
Khadar.

 
Tim Moores
Saloon Keeper
Posts: 7582
176
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That was just an example. Search for "Javascript date time picker" and you'll find plenty.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic