vendredi 17 juin 2016

Ruby : How to get months and days between two date?

I want find number of months and days between two dates in ruby. For example:

started_at = '2015-10-27' ended_at = '2016-07-30'

So, i want a function return '9 months and 3 days'.

Aucun commentaire:

Enregistrer un commentaire