The code doesn’t seem to function as intended. My calendar which is bound to the session property is always initialised to the value that was last set in the designer preview. (I want the application to start on today’s date.)
This might be a limitation of the timing of the startup and shutdown events, if I remember right they don’t have access to everything that might exist in a full fledged session?
But - couldn’t you just put a binding on session.custom.sessChartDateSelect of midnight(now(0))?