javascript convert string to date format dd/mm/yyyy hh:mm:ss code example
Example 1: javascript convert date from mm/dd/yyyy to yyyymmdd
var yourdate = date.split("/").reverse().join("-");
Example 2: javascript get current date format dd mm yyyy hh mm ss
dformat = [d.getDate(), d.getMonth() + 1, d.getFullYear()].join('/') + ' ' + [d.getHours(),d.getMinutes(),d.getSeconds()].join(':');