export var formatDate = function (date) {
    var options = {
        year: "numeric",
        month: "long",
        day: "numeric",
    };
    var dateObj = new Date(date);
    return dateObj.toLocaleDateString("en-US", options);
};
export var inputDateFormat = function (date) {
    var d = new Date(date);
    var month = "" + (d.getMonth() + 1);
    var day = "" + d.getDate();
    var year = d.getFullYear();
    if ((month === null || month === void 0 ? void 0 : month.length) < 2)
        month = "0" + month;
    if ((day === null || day === void 0 ? void 0 : day.length) < 2)
        day = "0" + day;
    return [year, month, day].join("-");
};
