# get-iso-string-datetime

> A package returns datetime from iso string

Latest version **1.0.2** (published 2023-04-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install get-iso-string-datetime
pnpm add get-iso-string-datetime
yarn add get-iso-string-datetime
bun add get-iso-string-datetime
```

## 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 | 2023-04-12 |
| First published | 2023-04-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | vishnuvnathan |
| Maintainers | codenathan |

## Links

- npm: https://www.npmjs.com/package/get-iso-string-datetime
- npm.io page: https://npm.io/package/get-iso-string-datetime

## Recent versions

- 1.0.2 (latest) — 2023-04-12
- 1.0.1 — 2023-04-12
- 1.0.0 — 2023-04-11

## README

# get-iso-string-datetime

A Node.js package for converting ISO string datetime to datetime string.
Installation
You can install get-iso-string-datetime using npm:

## Installation

Install get-iso-string-datetime with npm

```bash
  npm install get-iso-string-datetime

```

## Function

#### getDateTimeFromISOString(isoString)

getDateTimeFromISOString is a simple function converts an ISO string to simple datetime format without UTC attributes by removing ISO datetime format attributes delimiter "T" and Zero hour offset "Z" .

isoString: A string representing the datetime in ISO format (e.g., '2023-04-12T09:30:45.123Z').
Returns: A string representing the datetime in the input ISO string.

## Usage

```javascript
const getDateTimeFromISOString = require('get-iso-string-datetime');

const datetime = getDateTimeFromISOString('2023-04-12T09:30:45.123Z');
console.log(datetime); //2023-04-12 09:30:45.123
```

## License

This package is released under the [MIT License.](https://choosealicense.com/licenses/mit/)

## Contributing

If you find any issues or have suggestions for improvement, please feel free to contribute by opening an issue or submitting a pull request. We welcome contributions from the community!

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