Date formatting: Locale of short days and short months names

  • Hi everybody,
    I’m formatting dates with quasar Date, and I want to pass my locale short day names ‘ddd’ (3 characters spanish names like [‘Lun’,‘Mar’,‘Mier’…]) as a parameter to the formatDate function, in the doc I only find two properties, one for long day names and other for long month names.
    Any way to achieve this, passing properties to this formatDate function, or setting the internal quasar i18n locale in some way? And for short months names also?
    Thanks in advance!

    let formattedString = date.formatDate(timesStamp, 'MMMM - dddd', {
      dayNames: ['Duminica', 'Luni', /* and all the rest of days - remember starting with Sunday */],
      monthNames: ['Ianuarie', 'Februarie', /* and all the rest of months */]

  • Possible on v0.15, docs will be out soon!

Log in to reply

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.