var year = '2019'; var month = '04'; var day = '26'; var hour = '11'; var minute = '34'; var second = '27'; var result = year.concat(`/${month}/${day} ${hour}:${minute}:${second}`) console.log(result);