Townsheriff
Townsheriff

Reputation: 709

Nodejs dateformat module reference

Where dateformat module is located and where I can find it's api docs?

I see there is a package in npm with name dateformat, but on my machine dateformat module is already installed. I'm unable to find it in nodejs official docs.

A'm I missing a whole branch of available modules in nodejs?

Looking forward for some explanation.

Upvotes: 2

Views: 179

Answers (1)

Alicia Sykes
Alicia Sykes

Reputation: 7117

Option #1 - Date() Documentation

Well Node.js JavaScript, so you can just use the Date() documentation.

Option #2 - Additional Functionality

However the functions included within the Date API, is limited, which is why, as you mentioned, you may want to use an external library. A common, and very stable well supported choice would be moment.js

Upvotes: 1

Related Questions