Hi Team,
Is there a quick way to convert the value of a datepicker e.g. (9/10/2015) to a Date() object in javascript?
The trick is that datepicker 's value can be in different date formats.
Thanks
Dongzhi
Hi Team,
Is there a quick way to convert the value of a datepicker e.g. (9/10/2015) to a Date() object in javascript?
The trick is that datepicker 's value can be in different date formats.
Thanks
Dongzhi
Hello Dongzhi,
Please use this JS:
prevar d = new Date($("[name=datepickerName] input").val());/pre
here datepickerName - datepicker's name
Thanks, but the format of datepicker component could be different right? I mean e.g. "9/10/2015", how can the new Date() function tell , if it's 9th of October or 10th of September?
Dear Dongzhi,
Please search online for suitable solution, custom code is something outside the scope of our standard support.