How can I find the number of days between two Date objects in Ruby? October 18, 2022 by Tarik Subtract the beginning date from the end date: endDate - beginDate