jQWidgets Forums
jQuery UI Widgets › Forums › Editors › DateTimeInput › Calendar not selecatabl when min date as "0001-01-01"
Tagged: calendar, jquery calendar control
This topic contains 5 replies, has 2 voices, and was last updated by Peter Stoev 10 years, 11 months ago.
-
Author
-
Hi,
When we set the minumum date to “0001-01-01” the dates in the calendar becomes non selectable. This is replicable in the demo application.
$(“#jqxDateTimeInput”).jqxDateTimeInput({
width: ‘250px’,
height: ’25px’,
theme: ‘energyblue’,
min: new Date(Date.parse(“0001-01-01T05:00:00.000+0000”))
});Could you please help us fix this issue as soon as possible
Hi dais.ale,
The Calendar has minimum and maximum Date Range and the year 0001 is out of that range. To learn more about jqxCalendar’s API, look at: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxcalendar/jquery-calendar-api.htm
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi,
The calendar do work with minimum date “01/01/0100” that is lesser than the min date for this widget. The issue comes only when the date becomes lesser than 01/01/0100.
The issue is with the browser needs to instructed not to do any modification on date. I fixed this issue in my js code with the below line
new Date(Date.parse(“0001-01-01T05:00:00.000+0000”));Please help us out as this is a valid date for our application.
Regards,
DaisyHi Daisy,
You cannot select a date which is out of the minimum-maximum range and this is by design.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
I do understand that we cannot select beyond the range set. But in my code I can set the min date as “01/01/0001” (please refer to the code snippet pasted above)
But the datecontrol allows me to set the date as low as “01/01/0100” and i am finding issue when I set it below 01/01/0100Hi dais.ale,
new Date(Date.parse(“0001-01-01T05:00:00.000+0000”)); returns Invalid Date which means that you cannot parse this using the Date.parse method and as it is invalid date, you should not set it to the min, max or value properties. The range of supported and valid dates as far as I know for the Javascript Date object is 1900-2100. This is the range which our widget supports due to the reason that it operates with JavaScript Date objects.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.