8.2.9.8 datetime.ymd

Method: [y, m, d] = ymd (obj)

Get the Year, Month, and Day components of obj.

For zoned datetimes, these will be local times in the associated time zone.

Returns double arrays the same size as obj.