any-date-parser icon indicating copy to clipboard operation
any-date-parser copied to clipboard

Parse a wide range of date formats including human-input dates

Results 12 any-date-parser issues
Sort by recently updated
recently updated
newest added

Hi, I have tried to import the Parser and format classes. But I'm getting an error that the any-date-parser package does not export the classes. I think that in the...

`parser.attempt('Sept. 7th'); ` yields `"{\"invalid\":\"Unable to parse Sept. 7th\"}"`

``` error: Uncaught (in promise) TypeError: Class constructor Rr cannot be invoked without 'new' at LocaleHelper.buildMonthNames (file:///home/uri/.cache/deno/npm/registry.npmjs.org/any-date-parser/1.5.4/src/LocaleHelper/LocaleHelper.js:132:25) at LocaleHelper.build (file:///home/uri/.cache/deno/npm/registry.npmjs.org/any-date-parser/1.5.4/src/LocaleHelper/LocaleHelper.js:86:9) at new LocaleHelper (file:///home/uri/.cache/deno/npm/registry.npmjs.org/any-date-parser/1.5.4/src/LocaleHelper/LocaleHelper.js:49:8) at Function.factory (file:///home/uri/.cache/deno/npm/registry.npmjs.org/any-date-parser/1.5.4/src/LocaleHelper/LocaleHelper.js:18:34) at Format.getRegExp (file:///home/uri/.cache/deno/npm/registry.npmjs.org/any-date-parser/1.5.4/src/Format/Format.js:74:47)...

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) Commits 40674a4 update changelog, version d8cc569...

dependencies

Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...

dependencies

# Expected `parser.attempt('1615')` to produce `{ hour: 16, minute: 15 }`. # Actual `parser.attempt('1615')` to produce `{year: 2016, month: 1, day: 5}`.

Hello - I am attempting to implement the 'any-date-parser' in my typescript project. It seems that some locales are causing errors in the `.fromString` function. Below is an example of...

Hi, I'm using tsserver for typechecking on a nodejs project, and I get an error when importing the package See the gist: https://gist.github.com/dbellavista/901a33f0f23b1159972965349a19fbd1 ``` $ npx tsc -p ./jsconfig.json test.js:3:9...

Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3. Changelog Sourced from shell-quote's changelog. 1.7.3 Fix a security issue where the regex for windows drive letters allowed some shell meta-characters to escape the...

dependencies

It would be great to set an optional bounds where the match is searched from. Eg `20 Mar` currently defaults to 1999 when using datejs, and current year with luxon....