Skip to content

Solomon141/ethiopian-to-gregorian

Repository files navigation

ethiopian-to-gregorian

Contains some util methods for converting gregorian calander to ethiopian calander

Install

npm i ethiopian-to-gregorian

Publish

Quick start

  1. npm i ethiopian-to-gregorian to install the package
  2. import { getEthiopicDate, etchangetolong, etchangetofull, etchangetomedium, etchangetoshort, } from "./dateconverter.js" : to import.

3. const ddArray = getEthiopicDate(31, 3, 2024); Display any where inside your component.

The response is an Array[Year, Month, Day] after manipulating the array you can append " ዓ.ም"

4. const ddfull = etchangetofull(31, 3, 2024);

** code inside conponent: **  {ddfull}
** Output: ** እሁድ, ሚያዝያ 22, 2016

5. const ddlong = etchangetolong(31, 3, 2024);

** code inside conponent: **  {ddlong}
** Output: ** ሚያዝያ 22, 2016

6. const ddmedium = etchangetomedium(31, 3, 2024);

** code inside conponent: **  {ddmedium}
** Output: ** ሚያ 22, 2016

7. const ddshort = etchangetoshort(31, 3, 2024);

** code inside conponent: **  {ddshort}
** Output: ** 22/7/2016

Technologies Used

Language: Javascript

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published