MoneyWorks Manual
Edit
DoDatePicker (winRef, item, [format])
Definition: Use from the EnterField handler of a field (typically a user/custom field that you want to store a date in) to invoke the system date picker. The default date format will be the local short date format, but since you are storing the date in a text field you can optionally apply a format of your choosing. DateFormISO is recommended, since it is big-endian and therefore lexically sortable.
Example:
on EnterField:F_TRANS:E_USER6:DI(w, fieldName, fieldValue) DoDatePicker(w, fieldName, DateFormISO) end
Availability: available within MWScript handlers in MoneyWorks 9.2.6 and later.