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