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 } 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. Link to comment https://forums.phpfreaks.com/topic/92401-working-with-date/#findComment-473440 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.