I want to get rid of the time and rearrange the date to a mm-dd-yyyy format. I thought the code below would work but I need something to replace "value" and I figured it would be a variable that points to the Date column in the database.
var yyyymmdd = value.split(" ")[0].split("-");
return yyyymmdd[1] + "-" + yyyymmdd[2] + "-" +yyyymmdd[0];