fixed date format issue for date picker