const moment = require('moment');

export const dateFormat = (utcDate) => {
  return moment(utcDate, 'YYYY-MM-DD hh:mm:ss z').format('LLL');
};

const moment = require('moment');

export const dateFormat = (utcDate) => {
  return moment.utc(new Date(utcDate)).format('LLL');
};

Use Date function to help parse timezone.