index.js
function formatDatetime(date) {
  date = new Date(date);
  var hour = date.getHours();
  var minutes =
    date.getMinutes() < 10
      ? '0' + date.getMinutes().toString()
      : date.getMinutes();

  return formatDate(date) + ' ' + hour + ':' + minutes;
}
function formatDatetime(date) {
  date = new Date(date);
  var hour = date.getHours();
  var minutes =
    date.getMinutes() < 10
      ? '0' + date.getMinutes().toString()
      : date.getMinutes();

  return formatDate(date) + ' ' + hour + ':' + minutes;
}
function formatDatetime ( date ) { date = new Date ( date ) ; var hour = date . getHours ( ) ; var minutes = date . getMinutes ( ) < 10 ? '0' + date . getMinutes ( ) . toString ( ) : date . getMinutes ( ) ; return formatDate ( date ) + ' ' + hour + ':' + minutes ; }
Format date time helper

@param {Date} date
@return {String}
@api private
Format date time helper