2.2.4 • Published 5 years ago

angular-utc-datepicker v2.2.4

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

Angular UTC Datepicker

A simple Angular datepicker component that exclusively uses UTC.

Install

npm install --save angular-utc-datepicker

Dependencies

How to use

  • Import into app module: import { UtcDatepickerModule } from 'angular-utc-datepicker';
  • format option, for formatting date (and time, if necessary); defaults to 'YYYY-MM-DD'. Uses Moment formatting.
  • button option, for showing/hiding a button which opens the calendar popup
  • buttonPosition option, possible values are before and after (defaults to after)
  • dateChange event for handling when the input text is updated or when a date is selected from the calendar popup

Examples

<utc-datepicker [date]="myDate" (dateChange)="onDateChange($event)"></utc-datepicker>
<utc-datepicker [date]="myDate" [button]="true" (dateChange)="onDateChange($event)"></utc-datepicker>
<utc-datepicker [date]="myDate" [button]="true" buttonPosition="before" format="MM/DD/YYYY HH:mm:ss" (dateChange)="onDateChange($event)"></utc-datepicker>
2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago