While creating a new form, the data type of date is converted to string which is creating problems for my script

Data type changing from date to string on filling form and fetching the previous data

Can you share more details or screenshots? What are you seeing? Are you using a date picker in the form?