i am trying to fetch the date format for the logged-in User in javascript on visualforce page. Usually I used to get this data by using:
window.UserContext.dateFormat
Expected Output should be: "dd.mm.YYYY"
but this seems to return blank to me on my page. Could I get this from SOQL query somehow or some other util method?
Best Answer
seems like I answered this once before but I can't find it (so, reproducing answer again ... from my Util.cls)