Need to get user date defined format RRS feed

  • Question

  • When we set date (Regional Settings) on Delve and change the Locale, This is previously English US, then changed it to English UK. Now, date formats are different, i wonder if there is anyway, to find out what is the user defined locale (of the current logged in user). I will use that information to determine how to parse dates. thanks

    Monday, March 27, 2017 2:27 AM

All replies

  • Hi,

    We can use the following jQuery code to get the Regional Settings, add the following code into a script editor web part.

    <script src="//" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {	
    	var url = _spPageContextInfo.webAbsoluteUrl+"/_layouts/regionalsetng.aspx?Type=User";
    	var lcid, cultureInfo, timeZone;
    		$(data).find("select[name$='LCID'] option:selected").each(function(){
    			lcid  = $(this).attr("value");
    			cultureInfo  = $(this).text();
    		$(data).find("select[name$='TimeZone'] option:selected").each(function(){
    			timeZone  = $(this).text();
    		alert(lcid + "::" + cultureInfo + "::" + timeZone);

    More information:

    Best Regards,


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact

    Monday, March 27, 2017 9:15 AM