Skip to main content

parseDateFormat

Callable

  • parseDateFormat(dateString: string): null | string

  • Parse a given date to it's format

    @example
    console.log(parseDateFormat("04/10/2024")) // Logs: DD/MM/YYYY

    Parameters

    NameTypeDefaultDescription
    dateStringstring

    The date to parse

    Returns null | string

    The format, or null if format can't be determined