Angular's DatePipe does a great job of formatting Date strings or objects into specified formats, however, if you want to pass in a time string like "09:00" you're out of luck. Here's a Pipe which extends the standard DatePipe in order to provide that functionality.
adenearnshaw / ng-timepipe Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://adenearnshaw.com/blog/angular-timepipe/
License: MIT License