January 28 - Calculate the Number of Days Between Two Days in Ruby
This coding exercise focuses on how to perform date calculations. Specifically, you'll need to find the total number of days that have transpired between Christmas day in 2016 and July 1, 2004 (approximately when Rails when released as an open source project).
Guide Tasks
- Read Tutorial
- Watch Guide Video
- Complete the Exercise
Video locked
This video is viewable to users with a Bottega Bootcamp license
Already a Bottega Student? Sign In
Summary
Build a program that counts the number of days between two dates.
Exercise Description
Build a method to find the total number of days that have transpired between Christmas day in 2016 and July 1, 2004 (approximately when Rails when released as an open source project).
The total number of days should be
4560
Real World Usage
Performing date calculations is important in a number of algorithms, including: scheduling applications, calendar APIs, and any date/time related programs.