Hi there, I'm a newcomer to AngularJS and I have a specific requirement. The server is sending me two dates: start_date
and end_date
.
In the scenario where both dates are in 'pm', such as Sun 29 Jan 5.00 pm
to Sun 29 Jan 6.00 pm
, I would like to display them as "5.00 to 6.00 pm".
If the start_date
is in 'am' and the end_date
is in 'pm', I want to show them as "5.00 am to 6.00 pm". Additionally, I prefer the use of lowercase am/pm instead of AM/PM.
Can anyone guide me on how to achieve this?