There is an MVC 4 Web Application deployed on a server with specific date format (ex. US date format 02/02/2015).
How can i display a date on the client machine by respecting his local date culture (ex. Uk format 02-02-2015) so that when I retrive from the server the value 02/02/2015 on the client side it will be 02-02-2015?
I tried to use:
date.toLocaleDateString()
but whatever format i choose for my client machine the output remains the same.
Or if it is possible, how can i get the clients system date to pass it to my controller without asking to choose a format?