hzDatepicker

angularjs datepicker module

Added by: Sam Deering

GitHub

Repository

1001hz/hzdatepicker

Stats

Stars: 0

Watchers: 0

Forks: 0

Author

1001hz
1001hz

Module Description

hzDatepicker

angularjs datepicker module

Usage:

Add hz-datepicker.js and style.css to your page. Something like:

<script src="js/modules/hz-datepicker.js"></script>

<link href="css/style.css" rel="stylesheet">

Inject hzDatepicker as a dependency to your app.

var app = angular.module('app', ['hzDatepicker']);

Add datepicker directive to an input field. Call the show() function on focus.

<input datepicker ng-focus="show()" ng-model="selectedDate"></input>

ng-model will be a javascript date object. You can format the date however you like, e.g.

$scope.selectedDate.getMonths() + " " + $scope.selectedDate.getFullYear();

Module stats last updated: 2015-04-19 05:27:32

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!