jandrews3 Posted August 25, 2008 Share Posted August 25, 2008 Is there a simple way to get print date('Y-m-d'); to print one year in the future without converting the darn this, taking it apart, adding one to the first 4 characters, and then putting it back together again. Link to comment https://forums.phpfreaks.com/topic/121175-year-1/ Share on other sites More sharing options...
Drezard Posted August 25, 2008 Share Posted August 25, 2008 print (Date("Y") + 1) . "-" . Date("m-d"); Im hoping something like that works :S Daniel Link to comment https://forums.phpfreaks.com/topic/121175-year-1/#findComment-624672 Share on other sites More sharing options...
cooldude832 Posted August 25, 2008 Share Posted August 25, 2008 <?php $nextyear = date("Y",strtotime("+1 year")); ?> use the date function always when handling dates never treat as integers Link to comment https://forums.phpfreaks.com/topic/121175-year-1/#findComment-624673 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.