Pages for logged out editors узнать больше
if (end_date >= start_date) {
if ((now >= start_date) && (now < end_date)) { return true; } } else { // end date is less than start date, // assuming they belong to a different days (e.g. today and tomorrow)