change date to character