The Wayback Machine - https://web.archive.org/web/20210712023134/https://github.com/topics/date-fns
Skip to content
#

date-fns

Here are 218 public repositories matching this topic...

hazem3500
hazem3500 commented Oct 6, 2020

isSameMonth method returns true even if two dates aren't in the same Hijri month

const date1 = hijri.date("10/06/2020");
const date2 = hijri.addHours(date1, 13 * 24);

  date1.format("iYYYY/iM/iD") // 1442/2/19
date2.format("iYYYY/iM/iD") // 1442/3/2
hijri.isSameMonth(date1, date2) // true (it should return false)

Here is a link to reproduce the issue: [link](https://codesan

Improve this page

Add a description, image, and links to the date-fns topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the date-fns topic, visit your repo's landing page and select "manage topics."

Learn more