Hi,

Please find my requirement
- The Datetimepicker should display the current month
- It should disable the 1st day of the month (i.e mindate should be 2nd day of the month)
- It should disable all dates > current date (i.e maxdate should be current system date)

So that the user can choose the dates between 2nd to current date of the current month.

Problem description:
When I set mindate and maxdate for a dtpicker then its taking the first value and second value is lost. i.e I cant set both min and max value for a dtpicker.

Kindly advise how to set the min and max date value. If there is alternate solution i.e show only the current month in the dtpicker and moving the prev or next month button is disabled also helpful.

Looking for your assistance.


Regards,
Divakar Ragupathy

there is no reason why you can't set both min and max value for a dtpicker.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.