Open pilouk opened 7 years ago
$scope.CreatedDateDisplay = moment('2016-01-01', 'yyyy-mm-dd');
try this and it should work
Doesn't work either
Even i am having the same issue with the range picker. When i am passing an having a initial value to the model it shows as [object Object].
@pilouk your issue is resolved with my latest commit. @navneet35371 i am first clearing issue realted to date Time picker and then will close your issue.
I don't understand how to do this or if it's a bug but i try to load a date at start on my ng-model like below (Note there is no resource callback here)
$scope.CreatedDateDisplay = moment('2016-01-01');
The date actually appear in the input field but is not formatted as 'lll' which is the format i put in the sm-date-time-picker directive why ?
This is in my html
` <sm-date-time-picker flex="50"
`