to_a — Returns an Array representation
dateObj.to_a
#to_a returns an Array representation of dateObj. The elements of the array are, in order: seconds, minutes, hours, day, month, year, wday, yday.