Search and Top Navigation
#2832 closed bug (fixed)
Opened May 09, 2008 10:28AM UTC
Closed June 02, 2008 09:12AM UTC
Last modified January 17, 2010 06:07AM UTC
Datepicker v3.4.3 $(element).datepicker('getDate') doesn't work properly
| Reported by: | insekticid | Owned by: | grabanski | 
|---|---|---|---|
| Priority: | major | Milestone: | 1.5 | 
| Component: | ui.datepicker | Version: | 1.5b4 | 
| Keywords: | datepicker | Cc: | |
| Blocked by: | Blocking: | 
Description
When I enter any date into datepicker input and then I want to get this date with function $(element).datepicker('getDate') I always get "null".
I studied the code and I found this: date from input is parsed only when I opened datepicker!
So now I am using this ugly hack
$(element).datepicker("show");
$(element).datepicker("hide");
parsed = $(element).datepicker('getDate');
Attachments (0)
Change History (11)
Changed May 09, 2008 11:37AM UTC by comment:1
| priority: | critical → major | 
|---|
Changed May 09, 2008 11:44AM UTC by comment:2
| owner: | paul → iMarc | 
|---|
Changed May 09, 2008 12:16PM UTC by comment:3
Hello, here is my hotfix + I added new method for checking, if entered date is in allowed range
Changed May 09, 2008 02:32PM UTC by comment:4
new methods: isMaxDate, isMinDate
patch v2.0 is the same like patch v2
now It is possible to validate Datepicker dates with validate plugin
$.validator.methods.dateMin = function (value, element, param)
{
return $(element).datepicker('isMinDate');
};
$.validator.methods.dateMax = function (value, element, param)
{
return $(element).datepicker('isMaxDate');
};
$.validator.methods.dateRange = function (value, element, param)
{
return $(element).datepicker('isDateInRange');
};
Changed May 24, 2008 03:39AM UTC by comment:5
| milestone: | 1.2.4 | 
|---|
Milestone 1.2.4 deleted
Changed May 24, 2008 03:48AM UTC by comment:6
| component: | ui.core → ui.datepicker | 
|---|---|
| version: | 1.2.3 → 1.5b4 | 
Changed May 27, 2008 10:36PM UTC by comment:7
| owner: | iMarc → grabanski | 
|---|---|
| status: | new → assigned | 
Changed June 02, 2008 03:50AM UTC by comment:8
Those three methods you have added are features. I will move them to a feature ticket.
Changed June 02, 2008 08:32AM UTC by comment:9
I fixed this ticket, but I cannot close it. Permissions?
Changed June 02, 2008 09:12AM UTC by comment:10
| resolution: | → fixed | 
|---|---|
| status: | assigned → closed | 
Changed February 26, 2009 12:12PM UTC by comment:11
| milestone: | → 1.5 | 
|---|