We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`humanize = require("humanize")
console.log( humanize.naturalDay(new Date(),"m-d-Y" ) )
// returns "07-08-2016"`
Doesn't work on my application or tonicDec/npm
The text was updated successfully, but these errors were encountered:
I hit the same issue and figure it how. You need to pass a unix timestamp, not a date object. something like:
console.log( humanize.naturalDay(new Date().getTime() / 1000,"m-d-Y" ) )
If you use moment.js you can just do:
console.log( humanize.naturalDay(moment().unix(),"m-d-Y" ) )
Sorry, something went wrong.
No branches or pull requests
`humanize = require("humanize")
console.log( humanize.naturalDay(new Date(),"m-d-Y" ) )
// returns "07-08-2016"`
Doesn't work on my application or tonicDec/npm
The text was updated successfully, but these errors were encountered: