A demo project using Angular to convert any Unix timestamp value to human readable date and time.
It shows current Unix timestamp and converts it to a readable format in UTC and user's local timezone. Also, it allows to enter the timestamp value manually or to select a date time from the picker and converts it to a readable format.
In this demo, following concepts are used.
- Components
- Services
- Observables
- Interfaces
- Reactive Forms
This demo uses following third-party libraries.
- moment-timezone - for date manipulation
- ng-pick-datetime - for nice datetime picker
To install it on your local server, clone this repository and run npm install
. Once the installation is completed,
run ng serve
for a dev server. Navigate to http://localhost:4200/
.
This project was generated with Angular CLI version 1.6.1.