I have a Subscription model. In my subscriptions table I have a DateTime column called expires_at
.
For example:
expires_at: "2013-07-03 08:00:26"
I need to add 30 days more. Which method do I need to use for this?
Try this:
=> object.expires_at + 1.month
=> Sat, 03 Aug 2013 08:00:26 +0000
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With