I need date format of site,
I can get date separator using get_regionalSettings()
and get_dateSeparator()
.
I tried get_dateFormat()
but it returns "1".
I need to know date format of particular site "dd/mm/yyyy" , "mm/dd/yyyy" or whatever the default date time format is set in SharePoint site.
How can I get that using JSOM?
_api/web/RegionalSettings/dateFormat
. But it return 0 from webs with locale US (mmddyyyy)and 1 from my web with Norwegian (ddmmyyyy). You could check if 1 is ddmmyyyy and vice versa.