This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Date field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Date field" Watch "Date field" New topic
Author

Date field

thejaka samarakoon
Ranch Hand

Joined: Jul 20, 2010
Posts: 56
How to add Date field to a form using HTML?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63211
    
  69

In HTML5 use type="date" or any of the other of the supported date-oriented input types. For other versions of (X)HTML, you'll need to use a composite control created with script. Search for "JavaScript date picker".


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
thejaka samarakoon
Ranch Hand

Joined: Jul 20, 2010
Posts: 56
Thanks.How to transfer date object in a form to a servlet & then to jsp ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63211
    
  69

Depends upon which implementation you use.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Date field
 
It's not a secret anymore!