Added filter that converts string to Date object
Updated unit test for datepicker.