make graph date format consistant with datefield date format