// Date returns the next date column value from the current row.
//
// date must be in the format YYYY-MM-DD
Date returns the next date column value from the current row.

date must be in the format YYYY-MM-DD
// Date returns the next date column value from the current row . // // date must be in the format YYYY - MM - DD
func (tr *Reader) Date() time.Time {
	if tr.err != nil {
		return zeroTime
	}
	b, err := tr.nextCol()
	if err != nil {
		tr.setColError("cannot read `date`", err)
		return zeroTime
	}
	s := b2s(b)
	y, m, d, err := parseDate(s)
	if err != nil {
		tr.setColError("cannot parse `date`", err)
		return zeroTime
	}
	if y == 0 && m == 0 && d == 0 {
		return zeroTime
	}
	return time.Date(y, time.Month(m), d, 0, 0, 0, 0, time.UTC)
}
func ( tr * Reader ) Date ( ) time . Time { if tr . err != nil { return zeroTime } b , err := tr . nextCol ( ) if err != nil { tr . setColError ( " " , err ) return zeroTime } s := b2s ( b ) y , m , d , err := parseDate ( s ) if err != nil { tr . setColError ( " " , err ) return zeroTime } if y == 0 && m == 0 && d == 0 { return zeroTime } return time . Date ( y , time . Month ( m ) , d , 0 , 0 , 0 , 0 , time . UTC ) }
Date returns the next date column value from the current row.
Date returns the next date column value from the current row .
// special case for ClickHouse