Pages for logged out editors узнать больше
// option 1: what if it's now the day of "end" date?
// in this case the following is enough: if (now < end_date) { return true; }