jQuery UI offers a sophisticated and feature-rich UI component for inputting dates into a form field in its Datepicker plugin.
The jQuery UI Datepicker plugin provides a graphical calendar that can be set to pop up anywhere you might need a date keyed into a form. The calendar can be customized in its look and feel. The date format it produces can be set to mirror local customs. The text it labels fields with can be swapped out with whatever text you like, translated into a foreign language, or otherwise ... making the plugin fully capable of localization.
In this chapter, I describe how to use and customize the Datepicker plugin.
A barebones implementation of the Datepicker plugin doesn't look like much; it's unstyled, but it works, more or less, from the standpoint of functionality.
The following document is a demonstration of what a basic implementation of the jQuery UI Datepicker plugin looks like: