It does not seem like it’s possible to do this natively in JavaScript – you could either import a library like Moment.js or you could use a static map from a resource such as this one.
More Related Contents:
- based on mobile number how do i get country code in javascript or anguler 2+ [duplicate]
- How to read form post data in angular4?As we can read posted params in .net using Request.Form[“key”] ,how to do it in Angular 4?
- Angular 2+ and debounce
- Angular 2: Two backend service calls on success of first service
- How to check whether is empty? (in Angular 2+ till now)
- How to use Local storage in Angular [duplicate]
- Angular 2 router event listener
- Subject vs BehaviorSubject vs ReplaySubject in Angular
- Angular 2: TypeError: l_thing0 is undefined in [{{thing.title}} in AppComponent@4:44]
- Load existing components dynamically Angular 2 Final Release
- Angular 6: HTML table create dynamic columns and rows
- How to make a disabled reactive form Editable in Angular2
- Firestore Timestamp.fromDate not UTC
- Angular 5 Scroll to top on every Route click
- Angular 2 – How to pass URL parameters?
- Angular: In which lifecycle hook is input data available to the Component
- execute a function when *ngFor finished in angular 2
- How to cancel a subscription in Angular2
- Correct way Provide DomSanitizer to Component with Angular 2 RC6
- What is Angular 4 and from where I can learn more about it?
- How to use onBlur event on Angular2?
- Angular interceptor exclude specific urls
- How to iterate using ngFor loop Map containing key as string and values as map iteration
- Angular why asterisk (*)
- Angular 2 Hover event
- angular 2 access ng-content within component
- How to use jQuery UI with Angular 2
- Is it a bad practice to use jQuery in Angular? [closed]
- How to Inject Angular2 Http service into es6/7 Class?
- Angular 4: How to read content of text file with HTTPClient