I am using the jQuery datepicker but I want to be able to change the format of the date depending on whether the date picked is the 1st day of the month.
I know I need to use onSelect: function() { ... } but I’m really not sure how to insert the if statement into here based on what has been selected to change the date format.
Any ideas?
It will be something like: