The best way to implement a dtaepicker on website, in my opinion, is through HTML5 input tag with type=date. This input type, however, is not well-supported. AngularJS is a very promising extension for HTML, so I did some study on how to implement datepicker with AngularJS. The easiest way is to combine AngularJS directive and jQuery datepicker. The following is complete source code:
The source code is also available here, and demo is here.
 AngularJS: Directives
 Datepicker Widget | jQuery UI API Documentation
 jsFiddle demo