I\'m trying to create an input with date and time but I don\'t get the way of doing it.
I\'ve tried with input datetime,
&
-
You could try using date $filter
component:
$scope.tToDisplay = $filter('date')($scope.timestamp, 'yyyy-MM-dd HH:mm:ss');
and bind it to HTML like:
Make sure to include $filter as a dependency. More info on the formats.
- 热议问题