Bugfix on ui-date-format

Error was : TypeError: Object && value.toISOString has no method
'toISOString'