var date = "2015-11-11 00:00:00";
var newDate=/\d{4}-\d{1,2}-\d{1,2}/g.exec(date)
newDate="2015-11-11";