Popup calendar default value

Is there any function on pop up calendar that will set current date time value on this component. Like for example I have button that will trigger to the component on popup calendar and display the current date and time.

I’m thinking something like this on python:

event.source.parent.getComponent(‘myDate’).date = datetime.datetime.now()

but it give’s me an error saying that it can’t convert the date.


event.source.parent.getComponent('myDate').date = system.datetime.now()

Although jython tries hard to make jython-java conversions seamless, it isn’t perfect. Ignition’s script function now() yields the proper java.util.Date datatype.