It seems that you are using Version 2.0 of date-fns, which is still in alpha (development) status currently.

What functions are available and how they work still seems to change frequently. For example, while in version v2.0.0-alpha.26 toDate() can handle string parameters, it cannot do that any longer in version v2.0.0-alpha.27. There is a new parseISO() function instead.

This should work now:

format(parseISO('2019-02-11T14:00:00'), 'MM/dd/yyyy')

However, while version 2 is still in beta, I would suggest using the stable version 1.x for now.

Answer from NineBerry on Stack Overflow
🌐
date-fns
date-fns.org › docs › format
date-fns - modern JavaScript date utility library
date-fns provides the most comprehensive yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js.
🌐
Envato Tuts+
code.tutsplus.com › home › javascript
Using date-fns for Easy Date Manipulation | Envato Tuts+
July 28, 2023 - In this code, we parse the date from the dateString using the format yyyy-MM-dd, which corresponds to the provided date string. The third argument is the base date to use for calculating the parsed date. In this case, we use the current date as the base. Manipulating dates by adding or subtracting time intervals is a common requirement in date handling. date-fns provides a set of convenient functions to perform these operations with ease.
🌐
GitHub
github.com › date-fns › date-fns › issues › 501
How to convert from a string? · Issue #501 · date-fns/date-fns
April 18, 2017 - Hi. How can I convert a string to a date or time? The only thing I found is the parse function, which doesn't take a format string... This seems like a dangerous way to handle things.
Author   David-OConnor
🌐
Stack Overflow
stackoverflow.com › questions › 71469088 › how-to-convert-date-from-the-date-fns-string-format-to-date-object
How to convert date from the date fns string format to Date Object
You cannot get it to return a Date ... documentation. If you want to use a string to get a date object, you can simply use the constructor for the Date class....
🌐
Reddit
reddit.com › r/webdev › anyone familiar with date-fns? how do i best convert date strings ?
r/webdev on Reddit: Anyone familiar with date-fns? How do I best convert date strings ?
December 28, 2025 -

So I have a data.json file that has 'createdAt' strings such as ' 1 week ago' , or '2 days ago'. I need to dynamically update this with the current date, so that '1 week ago' becomes '2 weeks ago' a week from now etc. I can't imagine I would have to use a switch statement and hardcode this ('1 week ago') into dates(12-13-25) , there has to be a better way. Thanks

🌐
GitHub
github.com › date-fns › date-fns › issues › 227
How to convert a string date to a date, and convert it back to the exact same string (regardless of timezone)? · Issue #227 · date-fns/date-fns
July 27, 2016 - I have this application that needs dates to always display in EST, no matter the timezone they're using. I have ISO-8601 date strings like this: 2016-01-01 and I basically have to convert them into dates to do date math on them (add a mo...
Author   silouanwright
Find elsewhere
🌐
Medium
medium.com › @stheodorejohn › date-operations-in-javascript-with-date-fns-880bb182cec6
Date Operations in JavaScript with date-fns | by Theodore John.S | Medium
June 12, 2023 - From parsing and formatting to ... can level up your date manipulation game! ... Use the parse function to effortlessly convert date strings into JavaScript Date objects....
🌐
Handsontable
handsontable.com › home › hands-on: format date with date-fns and day.js in a data grid
Hands-on: Format date with date-fns and day.js in a data grid
August 25, 2023 - When you run this code, the output will look like this on pressing Format with date-fns button: This guide has given you a fundamental understanding of cell renderers and their application in displaying customized data within a data grid. Through these cell renderers, date strings are substituted with properly formatted dates. Armed with this knowledge, you can now extend your capabilities to manage even more intricate transformations.
🌐
SitePoint
sitepoint.com › blog › javascript › managing dates and times in javascript using date-fns
Managing Dates and Times in JavaScript Using date-fns — SitePoint
November 13, 2024 - Native date methods are often verbose and occasionally inconsistent. But good news is at hand. The date-fns library provides a simple yet comprehensive toolset for managing dates and times in JavaScript. date-fns is a lightweight alternative to moment.js or native JavaScript date manipulation.
🌐
DigitalOcean
digitalocean.com › community › tutorials › js-date-fns
Quick Tour of date-fns, a Simple JavaScript Date Library | DigitalOcean
March 18, 2020 - This is because native JavaScript doesn’t have a simple way to handle this. date-fns uses string patterns similar to Moment.js:
🌐
Fulcrumapp
help.fulcrumapp.com › all collections › integrations › date manipulation with date-fns
Date Manipulation with date-fns | Fulcrum Help Center
We now have access to the datefns helper functions for comparing, manipulating, and formatting dates and times. The examples below assume all the date-fns modules are available in a full build.