const dataParse = (string) => {
let options = {
day: '2-digit',
month: 'short',
year: 'numeric',
weekday: 'short',
timezone: 'UTC'
}
let data = new Date(string).toLocaleString("ru", options).split(",")
return `${data[1]},${data[0]}`
}
console.log(dataParse('12.05.18'))