import { DateTime } from 'luxon';
export const formatDateToLocaleString = (isoDate, luxonFormat = '') => {
    return DateTime.fromISO(isoDate, { zone: 'utc' })
        .toLocal()
        .toLocaleString(luxonFormat);
};
// convert date into UTC date format
export const toUtcDate = (date) => {
    if (!date) {
        return null;
    }
    if (date.endsWith('Z')) {
        return new Date(date);
    }
    else {
        return new Date(date + 'Z');
    }
};
//# sourceMappingURL=DateUtilities.js.map