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? Quote 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. Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/116093-solved-date-functions/#findComment-596988 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.