Fetch Todays System date In Web Designer. By Default.

Hi Everyone,

We have a requirement while creating a new contractor manually from the IT shop, Joining Date should be automatically populated as the current date,
so that users cannot select the previous date, and in the case of leaving date, past dates could not be selected from the calendar, I have attached screenshots for reference.


 

I have tried writing Rule for Entry date ( Rule: DateTime currentDateTime = DateTime.Now;) in the node editor in web designer but still cannot see any effect on the web page,
can anyone please suggest if I am doing changes at the right place?
Please help to find out the solution.

Regards - Kiran