Jump to content

date how to


ccrevcypsys

Recommended Posts

ok so i want my customers to be able to see compiled information for every month. So at the end of every month (or very begining) doesnt matter. But yeah when that date happens i want it to record information. I just need help  on the if statement.

 

Will this logic work?:

 

$year = date(Y);
$day = '1';
$month = date(m);
if($year."-".$day."-".$month==date(Ydm){

}

Link to comment
https://forums.phpfreaks.com/topic/77995-date-how-to/#findComment-394754
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.