Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Calculate the skrivelse deadline from a RiR report publish date.

      Swedish constitutional practice: 4 calendar months after publication. The returned date is computed by adding the configured number of calendar months to the publish date and preserving the original day-of-month when possible; if the target month is shorter, the date is clamped to that month's last day.

      Parameters

      Returns string

      ISO 8601 date string for the calculated deadline

      calculateSkrivelseDeadline('2026-01-15') // '2026-05-15'
      calculateSkrivelseDeadline('2026-01-31') // '2026-05-31'
      calculateSkrivelseDeadline('2026-10-31') // '2027-02-28' (Feb has no 31st)