{
  "id": 23022138,
  "title": "Working with Canadian benefit payment dates in JavaScript",
  "url": "https://urgent.news/2026/12/01/working-with-canadian-benefit-payment-dates-in-javascript",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-01T22:33:05.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/daybooktimes/working-with-canadian-benefit-payment-dates-in-javascript-2blm"
  },
  "original_language": null,
  "account": "When creating a budgeting app or reminder bot for Canadians, the question often arises: \"When do my CPP payments come in?\" The answer is not a simple calculation but rather a matter of looking up official dates. The primary source for these dates is the Benefits payment dates calendar on canada.ca, which lists the payments for 2026 and 2027 programs run by Service Canada and the CRA. It also notes that payments are issued on those dates but can take a few days to arrive, and that cheques by mail take longer than direct deposit. People should wait 5 to 10 business days before contacting the program if they have concerns.\n\nAt Daybook Times, we handle these dates by storing the published list rather than computing anything for CPP and OAS. This way, we can return the next payment date when given a specific date. For CPP and OAS, the dates are stored as strings in the format YYYY-MM-DD. The function nextPayment takes a list and a date, and returns the next date from the list that is on or after the given date. If no date is found, it returns null, indicating that the current year's data has been exhausted and the next year's list should be used.\n\nThere are two programs with simple rules that can be coded: CPP and OAS. These programs can be used to check data, but they should not replace the official list. For the Canada Disability Benefit (CDB), we use a function that calculates the third Thursday of the month. For the Canada Child Benefit (CCB), we estimate the date to be around the 20th of the month. However, if the 20th falls on a weekend, the payment is moved to the preceding Friday. We also have a list of CCB dates for 2026 and compare it to a function that estimates the dates. We found one mismatch for December 11, 2026, which is an exception due to a holiday. In such cases, the official date should be used and any discrepancies should be checked with the user and the paying agency.",
  "summary": "If you build a budgeting app or a reminder bot for people in Canada, someone will ask: \"When does my CPP come in?\" It looks like a date-math problem. Mostly it isn't. Here is how we handle it at Daybook Times, and where code should stop guessing. Start from the official list The source of truth is the Benefits payment dates calendar on canada.ca . It lists the 2026 and 2027 dates for programs run…",
  "summary_source": "publisher",
  "key_points": [
    "Canadian CPP payments dates listed on canada.ca",
    "Daybook Times stores published list, not computes dates",
    "CDB payment date calculated as third Thursday of month"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}