简体   繁体   中英

how to convert date format using angular js without filter

i have date like sat Nov 15 2014 i want to convert this date in 15/11/2014 and i am using.

$filter('date')($scope.visa.rdate, 'dd/MM/yyyy');

but it's not working.

在将$scope.visa.rdate (看起来像是一个字符串)转换为Date对象之前,将其传递到$filter

$filter('date')(new Date($scope.visa.rdate), 'dd/MM/yyyy');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM