JavaScript
Array destructuring

by Benny Neugebauer

const formattedDate = () => {
  const version = getDate().split('-');
  return `${version[0]}.${version[1]}.${version[2]}.${version[3]}${version[4]}`;
};

const formattedDate = () => {
  const [year, month, day, hour, minute] = getDate().split('-');
  return `${year}.${month}.${day}.${hour}${minute}`;
};