protect time/date editing