I need a conversion from a date and add +3 days. When I use the strtotime(“last wed +3 day”); it gives me a date between 2 and 3 days. It doesn’t work on my server and on the interent I’ve tested it with codepad: http://codepad.org/MhL77CVC and http://www.unixtimestamp.com/index.php. It gives me a time between 2 and 3 days from the last wedsday and it’s 7:00:00pm EST. Where I live is +1 Utc. What I need is something at 00:00 and I thought it is possible? My client isn’t very helpfully with his answers. He thinks everthing works in +1 UTC timezone?
Share
Use DateTime class to convert string to time. Second parameter accepts time zone, use DateTimeZone.
DateTime::format() method accepts format like date() function.