Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End ‘Open Now’ Time/Date Script Re: ‘Open Now’ Time/Date Script

#79099
lyleyboy
Member

Yep. Add an and to your if statement. Look at the online PHP documentation for date() and format.

So
$datestart = 9
$dateend = 17

If(date(‘G’) >= $datestart && date(‘G’) <= $dateend && date('w') == '5'){ Do what ever }