Skip to content

feat: days between dates in Turkish with date shifting - #29

Merged
halitsever merged 1 commit into
mainfrom
feat/gun-hesaplama
Dec 2, 2026
Merged

halitsever merged 1 commit into
mainfrom
feat/gun-hesaplama

Conversation

@halitsever

Copy link
Copy Markdown
Owner

Adds /tr/gun-hesaplama/, the Turkish page for the days-between-dates logic, and makes it the hreflang twin of /days-between-dates/.

The page has two calculators:

  • İki tarih arası gün sayısı: this reuses between() from src/date-diff.js and the Turkish calendar helpers in src/yas.js. It shows total days, years/months/days, weeks, months, weekdays and weekend days, with the optional "Bitiş gününü de say". The start date defaults to today, so "kaç gün kaldı" only needs an end date. Fields are day first, and a pasted 15.05.1990 is spread over the three fields.
  • Tarihe gün ekle ya da çıkar: a date plus or minus N days, with the weekday. The new pure shiftDays() in date-diff.js is tested and returns null outside the years 1-9999.

Keywords (Semrush TR, 2 Dec 2026)

Keyword Volume KD
gün hesaplama 74,000 39
tarih hesaplama 49,500 44
kaç gün kaldı 27,100 26
iki tarih arası gün hesaplama 18,100 37
tarihe gün ekleme 1,300 21
gün sayma 1,000 33

The "gün hesaplama" top 10 are all days-between-dates tools: hesaplama.net (AS 63), ewreka (14), hurriyet (98), hakedis (34), onlinealarmkur (58), milliyet (95), hesapla.app (30), medhesap (36), hesapmakinesi (17), hesaplamaci (19). "tarih hesaplama" has the same pages plus tarih.hesaplama.net, which adds days to a date, so this page covers that too.

Slug: gun-hesaplama exactly matches the biggest term, and two ranking pages use it (ewreka.net/gun-hesaplama, hesaplamaci.com/gun-hesaplama).

Twin: the search intent is the same as "days between dates", so the EN and TR pages are now paired with alternates. The TR index lists the Turkish page instead of the English one with a badge. /tr/yas-hesaplama/ stays separate.

Copy

The holiday paragraph lists the dates from 2429 sayılı Kanun (checked on mevzuat.gov.tr today). The month-end rule cites TBK md. 92, as the age page does. The Excel FAQ links Microsoft's Turkish help page, which covers TARİHFARKI and TAMİŞGÜNÜ.ULUSL.

Checks

  • npm test: 203 pass
  • npm run check:pwa: passes
  • The new browser-check block, the EN days block (its language menu now leads to the TR page), and index/404 at 1440 and 390 px.

@halitsever
halitsever merged commit a2017b9 into main Dec 2, 2026
2 checks passed
@halitsever
halitsever deleted the feat/gun-hesaplama branch December 2, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant