Date Formatter filter

  • Hi, I’m new to quasar and I’m seeing for a method that formats a date accordling the user locale ie:
    2018-04-21 could be formatted as: 21/04/2018 (Italian date format)

    Actually I’m inside my component I’m doing it:

    <q-item-main :label=“item.date_start | date”/>

    filters: {
    date: function (value) {
    let date = new Date(value);
    return date.toLocaleDateString();

    How can I set global filter in quasar?

Log in to reply