# @etugbeh/php-date-format

> PHP Date Format (Node Package)

Latest version **1.0.6** (published 2024-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @etugbeh/php-date-format
pnpm add @etugbeh/php-date-format
yarn add @etugbeh/php-date-format
bun add @etugbeh/php-date-format
```

## 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.6 |
| Published | 2024-01-07 |
| First published | 2024-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 50.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Emmanuel Tugbeh |
| Maintainers | etugbeh |
| Keywords | php, date, format, etugbeh, 2gbeh, hwp labs |

## Links

- npm: https://www.npmjs.com/package/@etugbeh/php-date-format
- Repository: https://github.com/2gbeh/php-date-format
- Homepage: https://github.com/2gbeh/php-date-format#readme
- Issues: https://github.com/2gbeh/php-date-format/issues
- npm.io page: https://npm.io/package/@etugbeh/php-date-format

## 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.6 (latest) — 2024-01-07
- 1.0.5 — 2024-01-06
- 1.0.4 — 2024-01-06
- 1.0.3 — 2024-01-06
- 1.0.2 — 2024-01-06
- 1.0.1 — 2024-01-06
- 1.0.0 — 2024-01-06

## README

# php-date-format

A node package for formatting dates in JavaScript using PHP syntax.

- No dependencies package
- No TypeScript support (yet)
- Use CommonJS import syntax

## Installation

```sh
npm install @etugbeh/php-date-format
```

## Usage
```javascript
const date_format = require("@etugbeh/php-date-format");

// Jan 7, 2024 (current date)
console.log(date_format());

// Tue, Sep 15, 1992
console.log(date_format("1992-09-15", "D, M j, Y"));

// 1970/01/01 12:00 AM
console.log(date_format("1970-01-01T00:00:00.000Z", "Y/m/d h:i A"));
```

## Documentation

https://www.w3schools.com/php/func_date_date_format.asp

The `date_format()` function returns a date formatted according to the specified format.

**Note**: This function does not use locales (all output is in English).

**Tip**: Also look at the `date()` function, which formats a local date/time.

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