Ask Your Question
0

How can I display a date range of 24 months using a date picker calendar?

asked 2021-12-12 11:00:00 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-08-15 17:00:00 +0000

david gravatar image

To display a date range of 24 months using a date picker calendar, you can follow these steps:

  1. Open the date picker calendar on your web page or mobile app.
  2. Set the minimum date to the current date and the maximum date to two years from the current date.
  3. When a user selects a start date, set the minimum date of the end date picker to the selected start date.
  4. When a user selects an end date, set the maximum date of the start date picker to the selected end date.
  5. Allow the user to select a start and end date within the 24-month range.

Alternatively, you can provide two separate date picker calendars, one for the start date and one for the end date, and limit the selectable dates based on the current date and the 24-month range. This will allow the user to select the date range more easily.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-12-12 11:00:00 +0000

Seen: 14 times

Last updated: Aug 15 '22