Despite the repetitive nature of these questions, I have yet to find a solution to my specific query. Any help would be greatly appreciated. Thank you in advance.
The HTML code is as follows:
var start="10:30 PM";
$scope.edit={}
frtime=start.split("PM")[0];
frtime = frtime.trim();
frtime= $filter('date')(frtime, "HH:mm");
$scope.edit.fromtime=new Date("2010-12-28T"+frtime+":00");
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<input type="time" ng-model="edit.fromtime">
The current time is displayed in the input field in HTML. However, I require 10:30 PM to be displayed instead.