We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

DateTimePicker Maximum value is not reflecting.

Maximum value is not reflecting though I used the same code in TimePicker but the latter is just working fine. Here's my code:

<EjsDateTimePicker Value="@_value"
                               ValueChange="@OnChange"
                               Placeholder="Date and Time"
                               FloatLabelType="@FloatLabelType.Auto"
                               Readonly="@_readOnly"
                               Min="@(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 8, 0, 0))"
                               Max="@(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month), 19, 0, 0))" />

TimePicker is just working fine:

<EjsTimePicker Placeholder="Start time"
                           Value="@_dailyTime"
                           ValueChange="@OnTimeChange"
                           FloatLabelType="@FloatLabelType.Auto"
                           Readonly="@_timeReadOnly"
                           Min="@(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 8, 0, 0))"
                           Max="@(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month), 19, 0, 0))" />

3 Replies

SD Saranya Dhayalan Syncfusion Team November 21, 2019 10:54 AM UTC

 Hi J,  
  
Thank you for contacting Syncfusion support  
 
We have checked your reported issue. Max time range(7.00PM) applied in the Max date (30/11/2019) only not for every date. Please check the below screenshot for your reference: 
 
 
  
If you are expecting the time range need to set every date that requirements currently not feasible with Date Time Picker. So, we have already considered the reported scenario (To restrict the time ranges for other days in Date Time Picker) as the improvement in Date Time Picker that will be included in any one of our upcoming releases.   
    
You can also track the details regarding this feature with our Feedback portal from the below link.  
  
  
Regards,  
Saranya D 
  



J j November 22, 2019 01:10 AM UTC

Okay that's cool you are adding this as a feature improvement.


SD Saranya Dhayalan Syncfusion Team November 22, 2019 02:00 PM UTC

Hi J 
 
Thanks for the update. You can track the status through the below feedback link 
 
Regards, 
Saranya D  


Loader.
Live Chat Icon For mobile
Up arrow icon