SyntaxFix
Write A Post
Hire A Developer
Questions
With the Date (and DateTime) classes you can do (end_date - start_date).to_i to get the number of days difference.
(end_date - start_date).to_i