No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Date Formatter filter

    Help
    1
    1
    705
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      adrianofoschi last edited by adrianofoschi

      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?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post