🖥
#Ruby or #Rails で Date の月同士を比較計算したいのだが?
愚直に頑張るしかないのかもしれない。
(date2.year * 12 + date2.month) - (date1.year * 12 + date1.month)
Find number of months between two Dates in Ruby on Rails - Stack Overflow
Original by Github issue
チャットメンバー募集
何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。
公開日時
2019-11-13
Discussion