There was an issue while using the function setStartAndEndDateWithParts(int startYear, int startMonth, int startDay, int endYear, int endMonth, int endDay). The desired date picker view came after the default date picker. I deleted the default view before adding the new view.
There was an issue while using the function setStartAndEndDateWithParts(int startYear, int startMonth, int startDay, int endYear, int endMonth, int endDay). The desired date picker view came after the default date picker. I deleted the default view before adding the new view.