Script for matching dueby in ticket to task

Script for matching dueby in ticket to task

Is there a script you can execute in the field and form rules on create or submit, that would allow me to mirror what the tickets dueby date to the tasks?