I have a query that reads a date like this
var getstatusdate = $('#statusdate').val();
getstatusdate = "6/14/2016 12:00:00 AM"
Need to compare with another variable that stores date in the format below
var today = "06/14/2016"
How do I remove the time from getstatusdate and make it look like "06/14/2016"
I tried this but no luck.
var cleaneddate = getstatusdate.toDateString("MM/dd/yyyy")