Help Debug Javascript

Job ID: 31809080

Budget: $10 – $30 USD

I have a web page which is used to make forms. I have been trying to debug a problem with a date object. I am requesting help to fix the code.

This is the page which does not work due to the date issue: https://www.soapnote.org/sample/does-not-work/

All other form types work fine. Here is the example: https://www.soapnote.org/sample/this-works-fine/

In the console, I get the error: "Uncaught TypeError: val.split is not a function"

I am requesting help correcting this error.
Related categories: PHP JavaScript HTML jQuery / Prototype