ECMS-4462: CalendarField value problem with sub node in dialog

Fix description:
   - Correct the source code to accept also Calendar object in parameter
   - Get the result to display in the date field