Converted the datepicker date parsing/formatting code to use jquery globalize.