RE: Lock &Unlock the date and time
Hi,
The code is something like the following snippet.
function setDeparturedate (executionContext) {
var formContext = executionContext.getFormContext();
formContext.getControl("new_departuredate").setDisabled(false);//Use the name of the field
};
Please set it on the OnChange event of the "Arrival Date" field.

Then the "Departure Date" field can be unlocked when "Arrival Date" field has been changed.


If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.
Best Regards,
Nya