I am developing MVC application.
I am using Date picker and I would like to set format used by the System.
Please let me know how can I get the date format used by system.
For example if system date is '01/25/2018',How can i get the format as 'mm/dd/yyyy' which is used by system.
I have tried using Date.toLocaleDateString()
which is returning the date value.
My requirement is only get the date format used by system.
Please let me know if there is anyway to know the format.