jakebur01 Posted February 22, 2008 Share Posted February 22, 2008 how would i do something like: if (expiration date is less than date("Y-m-d")) { echo your account has expired; } else { carry on } Quote Link to comment https://forums.phpfreaks.com/topic/92401-working-with-date/ Share on other sites More sharing options...
bpops Posted February 22, 2008 Share Posted February 22, 2008 You can use strtotime() to convert any date in string form (e.g. "Y-m-d") to Julian date in seconds, then do your comparison with those. Quote Link to comment https://forums.phpfreaks.com/topic/92401-working-with-date/#findComment-473440 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.