File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 61957
    
  67

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: 61957
    
  67

Depends upon which implementation you use.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Date field