JSPM

is-iso-date-string

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q41020F
  • License MIT

Check if a string is a ISO 8601 date string.

Package Exports

  • is-iso-date-string
  • is-iso-date-string/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-iso-date-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-iso-date-string

Checks if a string is a valid ISO 8601 date string.

Installation

Run yarn add is-iso-date-string, or npm i is-iso-date-string if you insist.

Usage

const isIsoDateString = require("is-iso-date-string");

isIsoDateString("2024-09-03T08:39:01+01:00"); // true
isIsoDateString("2024-09-03"); // true
isIsoDateString("03-09-2024 08:39:01"); // false