I can set the value to today'd date, but I can't seem to set the value based on a custom date string. I've shown in the code below the idea of what I want to do.
I have to use the string format of date that I specified below so that can't be changed, but can the format of the date string be modified?
var newDate = new Date();
newDate = "30/03/2020 12:00:00 AM";
$('#datePickerId').val(newDate);
error:
jquery.min.js:4 The specified value "30/03/2020 12:00:00 AM" does not
conform to the required format, "yyyy-MM-dd".