Hi I am using Jquery's DateTimePicker plugin in my ASP.Net we site. I want to have culture specific date format for my date time picker and where ever date is displayed from JavaScript should also be culture specific. How can we read culture/ regional settings in JavaScript. Also I need both Date and Time.
My Code
$('#datetimepicker_mask1').datetimepicker({
**format: 'd/m/Y H:i'**, onSelectTime: function (dp, $input) {}});
As I am harcoding the date format of datetimepicker, I want this format to be dynamic, as date time settings of the system where the site is being viewed