day
Day number or name of input date and time
Description
returns the day for each date and time in the input array. By default,
d = day(t)day returns the day-of-month numbers for the elements
of the input datetime array t.
The output d is a double array
containing integer values from 1 to 31, depending on the month and year. To
assign day values to datetime array t, use
t.Day and modify the Day property.