Time input value

Hey guys,

I can’t set the input time value.

Here is the code example: http://codepen.io/Philmod/pen/bNbYBZ

Thanks,
Philmod

hi ,
everything seems ok what u want to do

The time doesn’t show up:

Use this instead:

  var date = new Date();

  $scope.time = date.getHours() + ':' + date.getMinutes();
1 Like

Awesome, thanks @AntonV

With ionic b14 this doesen’t work anymore! i get:

Error: [ngModel:datefmt] Expected 14:57 to be a date

I found this workoround:

var date = new Date();
$scope.now = new Date(date.getYear(), date.getMonth(), date.getDay(), date.getHours(), date.getMinutes(), 0);