/**
 * formatDate.js
 *
 * @Author: apple
 * @Date: 2018/6/26 17:44
 */

import moment from 'moment';
var formatDate = function formatDate(value, format) {
  return value ? moment(value).format(format) : value;
};

export default formatDate;