JavaScript runtime error: Unable to set property 'currentDay' of undefined or null reference
$(function () { $('#txtDate').datepicker({ showOn: "button", buttonImage: "calender_icon.gif", width: 18, height: 18, buttonText: "", buttonImageOnly: true, dateFormat: 'mm/dd/yy', onSelect: function () { $(this).datetimepicker("hide"); $('#errormessage').html(''); } }); });How to resolve this error

Biswa Pujarini MohapatraPosted Jan 23, 2014, 3:37 AM
it seems the issue comes if there are duplicate id in your project
see this thread
http://blog.aardvarksoft.co.uk/index.php/2012/03/15/jquery-calendar-error-cannot-set-property-currentday-of-undefined/
try remove the duplicate id or rename the id if you have
vasanthasilvaryPosted Jan 23, 2014, 3:33 AM
solution is
we need to provide unique ids
vasanthasilvaryPosted Jan 23, 2014, 2:38 AM
Microsoft JScript runtime error: Unable to set value of the property 'currentDay': object is null or undefined
from jquery-ui-1.8.17.custom.min.js
Biswa Pujarini MohapatraPosted Jan 22, 2014, 1:22 PM
$('#txtDate).datepicker({ changeYear: true, changeMonth: true '', defaultDate: d});
try this code
vasanthasilvaryPosted Jan 22, 2014, 9:05 AM
$( ".selector" ).datepicker({ currentText: "Now" });
I am getting current day undefined error
vasanthasilvaryPosted Jan 22, 2014, 7:56 AM
http://2005.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerDefaultToday2.htm
vasanthasilvaryPosted Jan 22, 2014, 7:55 AM
http://jqueryui.com/datepicker/
is only appearing for
http://jqueryui.com/datepicker/#option-currenttext
Biswa Pujarini MohapatraPosted Jan 22, 2014, 6:58 AM
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerDefaultToday2.html
Anubhav ChaudharyPosted Jan 22, 2014, 5:59 AM
vasanthasilvaryPosted Jan 22, 2014, 5:42 AM
Biswa Pujarini MohapatraPosted Jan 22, 2014, 3:47 AM
http://jqueryui.com/datepicker/#option-currentText
Anubhav ChaudharyPosted Jan 22, 2014, 2:03 AM
http://www.c-sharpcorner.com/UploadFile/cd7c2e/how-to-calculate-age-by-inserting-dob-manually/
On this Article you will get much more functionality than you are trying, you can try them also or can omit them and can just use what are asking for