fixed datePicker

now datePicker is retourning data correctly, the calendar object is
correctly created, but the data string formatting is bugged