andrewgarn Posted July 22, 2008 Share Posted July 22, 2008 Ok this question should be simplew to answer If the date is 2008-07-01 and i use the function: $yesterday = date("Y-m-d", strtotime("-1 days")); will it give me 2008-06-30? or give an error? Link to comment https://forums.phpfreaks.com/topic/116093-solved-date-functions/ Share on other sites More sharing options...
jonsjava Posted July 22, 2008 Share Posted July 22, 2008 it will give you yesterday. Link to comment https://forums.phpfreaks.com/topic/116093-solved-date-functions/#findComment-596967 Share on other sites More sharing options...
.josh Posted July 22, 2008 Share Posted July 22, 2008 Why are you asking whether that will work or not? Just run it and find out. Link to comment https://forums.phpfreaks.com/topic/116093-solved-date-functions/#findComment-596972 Share on other sites More sharing options...
andrewgarn Posted July 22, 2008 Author Share Posted July 22, 2008 Why are you asking whether that will work or not? Just run it and find out. Its not the first of the month today? Previously i had a bug at beginning of july which made me think it wasn't working Thanks then, solved Link to comment https://forums.phpfreaks.com/topic/116093-solved-date-functions/#findComment-596988 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.