• JMap.Language.getDateFnsDateFormat

    Returns the date format associated with the current locale (specific to the date-fns JS library)

    Returns string

    Example

    // returns the default locale
    JMap.Language.setLocale("fr")
    console.log(JMap.Language.getDateFnsDateFormat())
    // "dd/MM/yyyy"
    JMap.Language.setLocale("en")
    console.log(JMap.Language.getDateFnsDateFormat())
    // "MM/dd/yyyy"