Why did you remove/comment out this code - its needed to convert the format of the date for the calendar popup in javascript