Q. How do you find the number of days in the current month in Ruby?

  • (A) Date.today.days_in_month
  • (B) Time.now.days_in_month
  • (C) DateTime.current.days_in_month
  • (D) Time.days_in_current_month
πŸ’¬ Discuss
βœ… Correct Answer: (A) Date.today.days_in_month

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
172
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate