ruby difference between two dates code example Example: ruby date difference in days endDate - beginDate