151
Views
5
Comments
how to set up a start and end date on the default date picker traditional web
Application Type
Traditional Web

Hi, i used date picker with select interval true, but i can't set up the start date and end date from database when first load page,

how to set up a start and end date on the default date picker? Seems there's only one parameter for initial date (start date) and there's no parameter to set the end date.

2022-07-22 08-49-20
Laura Fidalgo

Hey,

The 'select interval' allows the user to select an interval when using the app. Its purpose is not to set a start and end date when loading the page. 

If you need to set 'start' and 'end' dates, meaning that the user cannot select any date before or after, you can use the 'Min' and 'Max' dates. This will disable the selection of dates not in this interval 

Cheers

UserImage.jpg
Khoerotun Nisa

Hi, user can still changes start date and end date not in this interval, that's why i dont use MinDate and MaxDate, i need like the Initial Date

Thanks

2022-07-22 08-49-20
Laura Fidalgo

Understood. Thank you for clarifying :) 
Well, the date picker doesn't have that functionality, so you can only set an initial date 

2020-11-25 10-45-32
Mostafa Othman
Champion

Hello,

You need to set MinDate and MaxDate properties with values you returned from database for example check below screenshot

UserImage.jpg
Khoerotun Nisa

Hi, if use MinDate and MaxDate this will disable the selection of dates not in this interval. i need like the Initial StartDate and EndDate

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.