SyntaxFix
Write A Post
Hire A Developer
Questions
To get the number of days difference by two dates:
(start.to_date...end.to_date).count - 1 or (end.to_date - start.to_date).to_i