Change date to Date() format.