The Makes the selected date active, format issues though