I made new object Date.new with args (year, month). After create ruby added 01 number of day to this object by default. Is there any way to add not first day, but last day o
So I was searching in Google for the same thing here...
I wasn't happy with above so my solution after reading documentation in RUBY-DOC was:
Example to get 10/31/2014
10/31/2014
Date.new(2014,10,1).next_month.prev_day