I am creating a app using angularjs.Here is my code:
$scope.from = $filter('date')(new Date(), 'yyyy-MM-dd hh:mm');
It shows me output like:2016-05-15 06:30
But I want to show like:2016-05-15 18:30
Here is the API https://docs.angularjs.org/api/ng/filter/date:
'yyyy-MM-dd HH:mm'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With