// DateTime returns the next datetime column value from the current row.
//
// datetime must be in the format YYYY-MM-DD hh:mm:ss.
DateTime returns the next datetime column value from the current row.

datetime must be in the format YYYY-MM-DD hh:mm:ss.
// DateTime returns the next datetime column value from the current row . // // datetime must be in the format YYYY - MM - DD hh : mm : ss .
func (tr *Reader) DateTime() time.Time {
	if tr.err != nil {
		return zeroTime
	}
	b, err := tr.nextCol()
	if err != nil {
		tr.setColError("cannot read `datetime`", err)
		return zeroTime
	}
	s := b2s(b)
	dt, err := parseDateTime(s)
	if err != nil {
		tr.setColError("cannot parse `datetime`", err)
		return zeroTime
	}
	return dt
}
func ( tr * Reader ) DateTime ( ) time . Time { if tr . err != nil { return zeroTime } b , err := tr . nextCol ( ) if err != nil { tr . setColError ( " " , err ) return zeroTime } s := b2s ( b ) dt , err := parseDateTime ( s ) if err != nil { tr . setColError ( " " , err ) return zeroTime } return dt }
DateTime returns the next datetime column value from the current row.
DateTime returns the next datetime column value from the current row .