I use jQueryUI datepicker for a simple From and To date range filter in my ASP.Net MVC web application. It works fine until I hit a machine that had a date and time format (in regional settings) set to "dd-MM-yy".
In my controller, I have a postback action that takes a custom search object as a parameter, which is then passed to the search function. This custom object has properties for the dates "To" and "From", and, as usual, the binding occurs automatically. It works fine on a machine with the date format "MM / dd / yy", but if I set it to "dd / MM / yy" in the regional settings, then it will not be able to parse the date.
The easiest solution is to change the datepicker format to "dd-MMM-yyyy" - the non-financial date format, but my client wants the selected date to be displayed in MM / dd / yyyy format.
Any clean and easy suggestion to handle this on a date or controller level?
source share