UEA-Prodem
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import { toGregorianDate, toHijriDate } from "../utils/conversion.js";
|
||||
import { getDaysInMonth } from "../utils/daysInMonth.js";
|
||||
export function endOfYear(date) {
|
||||
const hijri = toHijriDate(date);
|
||||
const day = getDaysInMonth(hijri.year, 11);
|
||||
return toGregorianDate({
|
||||
year: hijri.year,
|
||||
monthIndex: 11,
|
||||
day,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user