Function convertIsoToPersian

  • Converts an ISO date string to a Persian date string.

    Parameters

    • isoDate: string

      The ISO date string to convert.

    Returns string

    The Persian date string in the format YYYY/MM/DD.

    const persianDate = convertIsoToPersian('2023-10-15T00:00:00Z');
    console.log(persianDate); // Outputs: 1402/07/23