DateTime: Disable Past Date function causing the calendar popup not to close