My code that give long month name instead short name:
var monthShortName=$.datepicker.formatDate('MM d, yy', new Date(),{ monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun','Jul','Aug','Sep','Okt','Nov','Dec'] });
alert(monthShortNam); // "March" and not like i want "Mar"
Thanks
(I use JQuery 1.7.1 + jQuery UI 1.8.2)
Edit - Eliasson Solution('M' and not 'MM'):
$.datepicker.formatDate('M d, yy', new Date());