find-dates

Find dates in a string where the format is unknown.
Usage
npm install find-dates
const { findDates } = require("find-dates");
findDates("My birthday is on June 21st!");
findDates("We're closed on December 24th and December 25th.");
You may use this library in your Typescript project via:
import { findDates } from "find-dates";
findDates("My birthday is on June 21st!");
findDates("We're closed on December 24th and December 25th.");
Options
delimiters
Delimiters to use when matching dates formatted as MM/DD/YYYY and MM/DD/YY where the delimiter is /. Some characters must be escaped for use in Regular Expressions. Setting this will override the default options, so if you want to match - and / make sure to include them.
Default: -/
Todo
Work in progress. Here's a rough plan:
License
MIT © Hutson Inc