src/migrate/MigrationGenerator.js
function yyyymmddhhmmss() {
  const d = new Date();
  return (
    d.getFullYear().toString() +
    padDate(d.getMonth() + 1) +
    padDate(d.getDate()) +
    padDate(d.getHours()) +
    padDate(d.getMinutes()) +
    padDate(d.getSeconds())
  );
}
function yyyymmddhhmmss() {
  const d = new Date();
  return (
    d.getFullYear().toString() +
    padDate(d.getMonth() + 1) +
    padDate(d.getDate()) +
    padDate(d.getHours()) +
    padDate(d.getMinutes()) +
    padDate(d.getSeconds())
  );
}
function yyyymmddhhmmss ( ) { const d = new Date ( ) ; return ( d . getFullYear ( ) . toString ( ) + padDate ( d . getMonth ( ) + 1 ) + padDate ( d . getDate ( ) ) + padDate ( d . getHours ( ) ) + padDate ( d . getMinutes ( ) ) + padDate ( d . getSeconds ( ) ) ) ; }
Get a date object in the correct format, without requiring a full out library like "moment.js".
Get a date object in the correct format without requiring a full out library like moment . js .