Hacker News new | past | comments | ask | show | jobs | submit login

On the $(document).ready call change:

   var d = new Date(element.name);
to

   var d = Date.parse(element.name);
This will solve the "undefined NaN, NaN:aN PM" issue.



Changed, thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: