@maschinenlesbar.org/lebensmittelwarnung-cli
    Preparing search index...

    Function latestBestBefore

    • The latest date a best-before text names (YYYY-MM-DD): "04.12.2026", "04/05/2027" and "04-06-2027" (day first), "2028/1/1" (year first), "07.2028", "EXP 10-2027", "07/2030", "bis 7/26" (month and a two-digit year after 2012) and "März/2028" (a month: its last day). Undefined when the text names none ("alle noch gültigen Mindesthaltbarkeitsdaten") or only a form that could be either ("12/11": a day and month, or a month and year).

      Parameters

      • text: string | undefined

      Returns string | undefined