Answers for "how to change the format in datatable in vuetify"

1

vue datatable date format

<!--You should use a custom row cell :-->

<v-data-table :headers="headers" :items="logs">
  <template v-slot:item.createdOn="{ item }">
    <span>{{ new Date(item.createdOn).toLocaleString() }}</span>
  </template>
</v-data-table>
Posted by: Guest on January-06-2021
1

v-data-table format date

<v-data-table :headers="headers" :items="logs">
         <template v-slot:item.createdOn="{ item }">
           <span>{{new Date(item.createdOn).toLocaleString()}}</span>
         </template>
      </v-data-table>
Posted by: Guest on August-12-2020

Code answers related to "how to change the format in datatable in vuetify"

Browse Popular Code Answers by Language