I have a date field on which I am calling datepicker in the following format :
$(function() {
      $('.dob').datepicker({
            dateFormat: 'dd/MM/yyyy',
      });
});
When the user selects the date, I am getting, say,
02 March 2002
I want to display this date in above format only but save as dd/mm/yyyy i.e .
02/03/2002
How to convert my String dd/MM/yyyy to String dd/mm/yyyy? Have tried with simpledateformat, also by providing locale arguments, none of these worked.
 
     
    