Extracts the year, month, and day elements from an input date.
Returns three integers: one that specifies the year, one that specifies the month, and one that specifies the day.