1.1.2 • Published 9 years ago
ng-utc-datepicker v1.1.2
Angular UTC Datepicker
A simple Angular 1.x datepicker directive that exclusively uses UTC.
Install
- npm:
npm install --save ng-utc-datepicker - bower:
bower install --save ng-utc-datepicker
Dependencies
- Angular 1.x
- MomentJS
- Font Awesome
How to use
- Inject
'es.ngUtcDatepicker'into your app - Add
ng-utc-datepickerto aninputtag formatoption, for formatting date (and time, if necessary); defaults to'YYYY-MM-DD'. Uses Moment formatting.triggeroption, for triggering the calendar with an external element such as a button or icon. Must be an element ID.
Live Demo
https://ericsvendsen.github.io/ng-utc-datepicker/
Examples
<input ng-utc-datepicker ng-model="vm.date"/><span id="icon" class="fa fa-calendar"></span>
<input ng-utc-datepicker data-trigger="icon" ng-model="vm.date"/><input ng-utc-datepicker data-format="MM/DD/YYYY HH:mm:ss" ng-model="vm.date"/>