"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatDate = void 0;
function formatDate(date = new Date()) {
    const day = date.getDate();
    const year = date.getFullYear();
    const dayPattern = `0?${day}`;
    const month = date.toLocaleString('en-GB', { month: 'short' });
    const monthPattern = month === 'Sep' ? 'Sept?' : month;
    return new RegExp(`${monthPattern} ${dayPattern}, ${year}`);
}
exports.formatDate = formatDate;
