{"slug":"record-date-vs-ex-dividend-date","qid":"ex_vs_record_by_year","label":"Ex-date vs. record date by year: share identical, and the median gap in calendar days","post_title":"Ex-Dividend Date vs. Record Date: Same Day?","post_url":"/blog/record-date-vs-ex-dividend-date#q-ex_vs_record_by_year","columns":["year","dividends","pct_ex_equals_record","median_gap_days"],"rows":[{"year":2015,"dividends":27453,"pct_ex_equals_record":0,"median_gap_days":2},{"year":2016,"dividends":27712,"pct_ex_equals_record":0,"median_gap_days":2},{"year":2017,"dividends":28332,"pct_ex_equals_record":0,"median_gap_days":2},{"year":2018,"dividends":29546,"pct_ex_equals_record":0.1,"median_gap_days":1},{"year":2019,"dividends":30186,"pct_ex_equals_record":0,"median_gap_days":1},{"year":2020,"dividends":28548,"pct_ex_equals_record":0,"median_gap_days":1},{"year":2021,"dividends":29968,"pct_ex_equals_record":0.1,"median_gap_days":1},{"year":2022,"dividends":31810,"pct_ex_equals_record":0,"median_gap_days":1},{"year":2023,"dividends":33137,"pct_ex_equals_record":0,"median_gap_days":1},{"year":2024,"dividends":35419,"pct_ex_equals_record":65.1,"median_gap_days":0},{"year":2025,"dividends":40662,"pct_ex_equals_record":98.7,"median_gap_days":0},{"year":2026,"dividends":28811,"pct_ex_equals_record":98.9,"median_gap_days":0}],"shape":"ranking","sql":"SELECT toYear(ex_dividend_date) AS year,\n       count() AS dividends,\n       round(100.0 * countIf(ex_dividend_date = record_date) / count(), 1) AS pct_ex_equals_record,\n       round(quantileDeterministic(0.5)(dateDiff('day', ex_dividend_date, record_date), cityHash64(id)), 0) AS median_gap_days\nFROM global_markets.stocks_dividends\nWHERE currency = 'USD'\n  AND ex_dividend_date >= '2015-01-01'\n  AND ex_dividend_date <= today()\n  AND record_date IS NOT NULL\nGROUP BY year\nORDER BY year","computed_at":"2026-08-22T04:18:30.292659+00:00","elapsed":0.145249744}