javascript string to date dd/mm/yyyy hh:mm code example Example: javascript convert date from mm/dd/yyyy to yyyymmdd var yourdate = date.split("/").reverse().join("-");