0
我在出生日期時使用了ngComboDatePicker。我收到此格式的日期:我想將ngComboDatePicker日期轉換爲yyyy-mmm-dd格式
dateOfBirth:Wed Jan 03 1940 00:00:00 GMT+0530 (India Standard Time)
這個我想轉換成yyyy-mmm-dd
格式,HTML。
<ng-combo-date-picker ng-model="user.dateOfBirth" ng-placeholder="YYYY,MMM,DD" ng-min-date="{{ min.toString() }}" ng-max-date="{{ max.toString() }}"></ng-combo-date-picker>.
[轉換日期到東部時區與角]可能重複(http://stackoverflow.com/questions/28883472/convert-date-to-eastern-time-zone-with-angular) – liquide