# sundate

> A package for convert jalali to gregorian And conversely & write now date

Latest version **1.1.5** (published 2024-04-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install sundate
pnpm add sundate
yarn add sundate
bun add sundate
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2024-04-16 |
| First published | 2022-01-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 25.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Debugger |
| Maintainers | armnajafi |
| Keywords | sundate, date, jalaali, shamsi, date, convert, sundate.js, jalali, gregorian |

## Links

- npm: https://www.npmjs.com/package/sundate
- Homepage: https://github.com/armnajafi/sundate
- npm.io page: https://npm.io/package/sundate

## 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.1.5 (latest) — 2024-04-16
- 1.1.4 — 2024-04-16
- 1.1.3 — 2024-04-12
- 1.1.2 — 2024-04-12
- 1.1.1 — 2024-04-12
- 1.1.0 — 2024-04-12
- 1.0.1 — 2022-03-19
- 1.0.0 — 2022-01-06

## README

<div align="center">

<h1>sundate</h1>

<br>

 <a href="https://www.npmjs.com/package/sundate"><img src="https://nodei.co/npm/sundate.png?downloads=true&stars=true" alt="sundate download"></a>

 <br>

 <img src="https://img.shields.io/npm/dt/sundate.png">

</div>

<br>



## Installation

` npm install sundate@latest -g`

## Examples for use


Get a custom time date
```JS

import Sundate from "sundate"
 let sundate = new Sundate(1712941445900)
 console.log(sundate.show(false)) // show gregorian like : [1403 , 1 , 1]
 console.log(sundate.show(true)) // show shamsi like : [2024 , 3 , 13]

```


Get Currently Date
```JS

import Sundate from "sundate"
 let sundate = new Sundate()
 console.log(sundate.now(false)) // show gregorian like : [1403 , 1 , 1]
 console.log(sundate.now(true)) // show shamsi like : [2024 , 3 , 13]

```


## Report Bug
https://github.com/Armnajafi/sundate/issues

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