check date before event insertion