Skip to content

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-utils
bash
pnpm add taqwim-core-utils
bash
yarn add taqwim-core-utils

Usage

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
}

Released under the MIT License.