Search Posts

Category: trim

How to trim and concatenate strings in AngularJS

I want an event which currently has its starting date and ending date in a list as: Event1={Start: ‘Sep 18, 2017 10:00AM’, End: ‘Sep 18, 2017 11:00AM’} How can I trim and concatenate this to just display Event1 as Sep 18, 2017, 10:00 AM – 11:00 AM as my event start and end dates would always be the same so I don’t need them to displayed separately. I could do them both in my controller […]