Posts by Lucas William • 651 points
2 posts
-
33
votes3
answers63728
viewsA: Add days to a date
I’ve already done what I wanted to do. I’ll leave the code here for other people to use. $data = "20-10-2014"; echo date('d/m/Y', strtotime("+2 days",strtotime($data)));…
-
22
votes3
answers63728
viewsQ: Add days to a date
I need to add 2 more days on a date coming from a variable. I’m doing it this way but it’s not working. $data = '17/11/2014'; echo date($data, strtotime("+2 days"));…