Reputation: 1211
In my SharePoint web site I am using Jquery date time picker and displaying the dates on my pages. I want to initialize my datetime picker with some default date but in CLIENT machine's format and need the same while displaying the dates elsewhere in my site. I tried to use .toLocaleString() in JavaScript but it did not solve the problem. Please advice.
Upvotes: 0
Views: 458
Reputation: 327
check this other similar threads. It might help you:
How format JavaScript Date with regard to the browser culture?
How to detect the user's locale date and time format
Upvotes: 1