Currently, I have an input box that is displaying the time in the format HH:mm AM/PM.
<input type="text" ng-model="myTime" required/>
To achieve this, I am utilizing the date filter in AngularJS -
$scope.myTime = $filter("date")(new Date(), 'shortTime');
Now, I need to send this time to another layer in a longer format. Is there a way to accomplish this within AngularJS without relying on Moment.js?
Note: It would be preferable to find a solution that does not involve using Moment.js.