fixing date picker to set initial date correctly