How to move the object data in item in the v-for loop of vue into computed

<div class="everyOrder" v-for="everyOrder in allOrderList">
    <p class="orderTit">{{new Date(everyOrder.createdDate).toLocaleDateString().replace(/\//g, "-")+ " " + new Date(everyOrder.createdDate).toTimeString().substr(0, 8)}}

</div> new Date(everyOrder.createdDate).toLocaleDateString().replace(/\//g, "-")+ " " + new Date(everyOrder.createdDate).toTimeString().substr(0, 8)computed
Jun.28,2021

filter is more suitable

<div class="everyOrder" v-for="everyOrder in allOrderList">
 <p class="orderTit">{{everyOrder.createdDate | formatDate}}

</div> filters: { formatDate: function (value) { var newDate = new Date(value).toLocaleDateString().replace(/\//g, "-")+ " " + new Date(value).toTimeString().substr(0, 8) return newDate } }

<div class="everyOrder" v-for="everyOrder in allOrderList">
    <p class="orderTit">{{everyOrder. createdDate | format}}

</div> <script> export default{ filters: { format: function(value) { return ( new Date(value).toLocaleDateString().replace(/\//g, '-') + ' ' + new Date(value).toTimeString().substr(0, 8) ); } } } </script>

    <div class="everyOrder" v-for="everyOrder in allOrderList">
        <p class="orderTit">{{getStr}}

</div> computed:{ getStr(){ var str = return str } }

you just use filter

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37362-34441.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37362-34441.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?