Create a function that converts a date formatted as MM/DD/YYYY to YYYYMMDD. code example
Example: javascript convert date from mm/dd/yyyy to yyyymmdd
var yourdate = date.split("/").reverse().join("-");
var yourdate = date.split("/").reverse().join("-");