code: func ParseDate(sc *stmtctx.StatementContext, str string) (Time, error) {
  	// date has no fractional seconds precision
  	return ParseTime(sc, str, mysql.TypeDate, MinFsp)
  }
docs: // ParseDate is a helper function wrapping ParseTime with date type.