# date-with-slashes

> Utility function for converting javascript date object to string in the format 'MM/DD/YY' or 'MM/DD/YYYY'

Latest version **1.0.2** (published 2016-06-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install date-with-slashes
pnpm add date-with-slashes
yarn add date-with-slashes
bun add date-with-slashes
```

## 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.2 |
| Published | 2016-06-11 |
| First published | 2016-05-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | sirRodgePodge |
| Maintainers | sir-rodge-podge |

## Links

- npm: https://www.npmjs.com/package/date-with-slashes
- Repository: https://github.com/sirrodgepodge/date-with-slashes
- Homepage: https://github.com/sirrodgepodge/date-with-slashes#readme
- Issues: https://github.com/sirrodgepodge/date-with-slashes/issues
- npm.io page: https://npm.io/package/date-with-slashes

## Recent versions

- 1.0.2 (latest) — 2016-06-11
- 1.0.1 — 2016-06-11
- 1.0.0 — 2016-05-02

## README

# date-with-slashes
Utility function for converting javascript date object to string in the format 'MM/DD/YY'

```js
import dateWithSlashes from 'date-with-slashes';

const todaySlashified = dateWithSlashes(new Date());

console.log(todaySlashified); // it's May 2, 2016 so this will log '5/2/16'

// with four digit year
const todaySlashifiedFour = dateWithSlashes(new Date(), true);

console.log(todaySlashifiedFour); // it's May 2, 2016 so this will log '5/2/2016'
```
[![NPM][nodei-image]][nodei-url]

[nodei-image]: https://nodei.co/npm/date-with-slashes.png?downloads=true&downloadRank=true&stars=true
[nodei-url]: https://www.npmjs.com/package/date-with-slashes

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