1
I am paying for some purchases that have specific dates, and when I step as parameter a date should be < that date("Y-m-t", time() + 14*24*60*60)
, that in case it would have to be 2 weeks, it page me 1 month. According to the php doc, 24*60*60
is 1 day soon date("Y-m-t", time() + 14*24*60*60)
would be 14 days/ 2 weeks. Anyone understand why this?
From the current date you want to add 14 more days?
– rray
Yeah, I need to get today’s date 14 more days, then 1 more month, then 2 more months..
– Michel Henriq
Do the answers solve this? Or is something missing?
– rray
one more question, on strtotime when I want more than a week, or month, I have to put in plural? 2 Weeks, 2 months ?
– Michel Henriq
can be in the singular, whatever.
– rray
so that’s it. All my doubts have been solved. Thank you to everyone.
– Michel Henriq
:D always come back!
– rray