Function formatShortDate

  • Formats a value into a locale-aware short date string.

    Parameters

    • value: DateInput

      Value to format as a date

    • Optionallocale: string

      Optional locale override used for formatting

    Returns string

    Locale-formatted short date string, or undefined if the input is invalid