Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including date-fp with all npm packages installed. Try it out:

var dateFp = require("date-fp")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

date-fp v5.0.3

Functional programming date management.


Circle CI npm version Gitter

date-fp is a utility library for working with JavaScript dates.


There are several excellent JavaScript libraries for managing dates in JavaScript but they are generally built to be used in the object-oriented programming paradigm. This makes them cumbersome to include in a functional context.

All functions in date-fp are pure, autocurried and will not mutate the date objects they are applied to.

If you are not familiar with functional programming in JavaScript read Professor Frisby's Mostly Adequate Guide to Functional Programming

Also check out Ramda (A great library for functional programming with JavaScript)


Read the full documentation


Yes please!

Something to note is that we automatically release to NPM on every successful commit and we also strictly follow SemVer so please update the version number in package.json appropriately when submitting a Pull Request.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free