Fixing the selected date on datapicker