Fixing date directive to be more efficient with updates
Fixing date direcrtive when externally set to null. It  was still showing the previous date in the calendar.