I am new to ruby ββand have a problem with some date functions. I am trying to add a calendar month to the delivery date, so "April 30, 2002" will be released on "May 31, 2002." Here is my code
date = '30th Apr 2002'
parseDate = Date.parse(date)
(parseDate >> 1)
Perhaps this does not mean that the function should work, and in this case I will need to write some code to return the last day of the next month, if the provided date is the last day of the month?
Any help would be greatly appreciated.
source
share