# ad-bs-date-conversion

> ## - Overview

Latest version **1.0.1** (published 2021-07-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install ad-bs-date-conversion
pnpm add ad-bs-date-conversion
yarn add ad-bs-date-conversion
bun add ad-bs-date-conversion
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-07-16 |
| First published | 2021-04-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 49.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Prastav Pokhrel |
| Maintainers | prastav |
| Keywords | ADToBS, BSToAD, BS, nepaliCalendar, dateConverter, date, nepaliDate |

## Links

- npm: https://www.npmjs.com/package/ad-bs-date-conversion
- Repository: https://github.com/Prastav54/ad-bs-converter
- Homepage: https://github.com/Prastav54/ad-bs-converter#readme
- Issues: https://github.com/Prastav54/ad-bs-converter/issues
- npm.io page: https://npm.io/package/ad-bs-date-conversion

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-07-16
- 1.0.0 — 2021-04-13

## README

# ad-bs-date-conversion

## - Overview

The aim of this package is to convert AD date to BS date and vice versa . Since there is no standard logic for nepali calendar, we have to store nepali calender for this operation. So,This package can convert date from 1970-01-01 BS to 2099-12-30 BS for BSToAD and its equivalent AD date for ADToBS conversion .

## - Getting Started

### 1) Install

```bash
npm install --save ad-bs-date-conversion
```

### 2) Usage

```js
import { ADToBS, BSToAD, findLastDayOfMonthOfAdDate, findLastDayOfMonthOfBsDate } from "ad-bs-date-conversion";

console.log(ADToBS("2021-04-13")); // Prints 2077-12-31
console.log(BSToAD("2077-12-31")); // Prints 2021-04-13
console.log(ADToBS("2021/04/13")); // Prints 2077-12-31
console.log(BSToAD("2077/12/31")); // Prints 2021-04-13
console.log(findLastDayOfMonthOfAdDate(2021, 7)); //Prints 31
console.log(findLastDayOfMonthOfBsDate(2078, 4)); //Prints 32
```

---
_Source: https://npm.io/package/ad-bs-date-conversion · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
