Vidyalelo
Ruby Programming · Q1

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 1

Q1

How do you create a new Date object representing the current date in Ruby?

A.
Date.now
B.
Date.current
C.
Date.today
Answer
D.
Date.new

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board