Examveda

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

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

B. Returns the month of the year (1-12)

C. Returns the year of the Date object

D. None of the above

Answer: Option B


Join The Discussion

Related Questions on Working with Dates and Times in Ruby