为 Angular JS 中失败的日期应用过滤器

Apply filter for date failing in Angular JS

我正在从休息服务中获取日期

$scope.dob="1989-10-17 00:00:00"

我如何转换/应用过滤器到这个日期看起来像正常日期(没有时间)。

我尝试拼接时间部分,但这在 ng-repeat.It 中不起作用

请注意格式 date filter 理解:

Date to format either as Date object, milliseconds (string or number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is specified in the string input, the time is considered to be in the local timezone.

“1989-10-17 00:00:00”无法解析。相反,它应该是:“1989-10-17T00:00:00Z”