Examveda

What does the ordinal method return for a Date object in Ruby?

A. Returns the day of the year (1-365)

B. Returns the day of the month (1-31)

C. Returns the day of the Date object

D. Returns the day of the week (1-7)

Answer: Option D


Join The Discussion

Related Questions on Working with Dates and Times in Ruby