SO date answer

http://stackoverflow.com/questions/27476167/date-display-appery-io

by vladkras

JavaScript

var yourdate = new Date('2014-12-14 00:00:00');
alert(yourdate.getMonth() + "-" + yourdate.getDate() + "-" + yourdate.getFullYear());