How to properly set date and time when form should get disabled?