
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
dehumanize-date
Advanced tools
Parse dates in all the formats humans like to use:
Return dates in just the format that computers should use:
$ npm install dehumanize-date
A simple function which takes a string as an argument and returns a string in the form yyyy-mm-dd.
var date = dehumanizeDate(userInput);
The second parameter contains options. You can set whether to use US-style short dates, you can change what 'now' is for input like 'yesterday', and you can change the cutoff for 2-digit years that determines whether a given two-digit year is in the 21st or 20th century.
var date = dehumanizeDate(userInput, {usa: true, now: new Date(), cutoff: 80});
If you just want to use US formats for numerical dates you can also pass true as the second parameter:
var date = dehumanizeDate(userInput, true);
MIT
FAQs
Parse dates in all the formats humans like to use.
The npm package dehumanize-date receives a total of 81 weekly downloads. As such, dehumanize-date popularity was classified as not popular.
We found that dehumanize-date demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.