check if date is set