Count number of days between two dates October 25, 2022 by Tarik With the Date (and DateTime) classes you can do (end_date - start_date).to_i to get the number of days difference.