Get Started
Introduction
taqwim-core-utils is a modern date utility library for frontend. It is a lightweight and agnostic utility library for date and time manipulation in frontend.
Installation
bash
npm install taqwim-core-utilsbash
pnpm add taqwim-core-utilsbash
yarn add taqwim-core-utilsUsage
js
import { toHijri } from 'taqwim-core-utils'
const gregorianDate = new Date('2024-03-11')
const hijriDate = toHijri(gregorianDate)output :
{
"hy": 1445,
"hm": 9,
"hd": 1
}