none
Get local system date format in IE10 RRS feed

  • Question

  • I need system date format to display date in my application.

    I am using below line of code

    new Date().toLocaleDateString(window.navigator.userLanguage);
    but it is not working. It is working in IE11.

    Anyone who can assist me on this issue.

    Friday, August 21, 2015 5:11 AM

Answers

  • It is working in IE11.

    Cool!   I just pasted that into the Developer Tools, Console tab and saw that it works in there in both Edge and IE11 on W10.  Any clues from the DT CT under IE10?   <eg>

    Otherwise parse it out in there.  What's "not working"?

     

    HTH



    Robert Aldwinckle
    ---

    Saturday, August 22, 2015 5:28 PM