Skip to content
New issue

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

How to Get Current Date in User Readable Form in Nodejs #249

Closed
birender opened this issue Aug 11, 2016 · 1 comment
Closed

How to Get Current Date in User Readable Form in Nodejs #249

birender opened this issue Aug 11, 2016 · 1 comment

Comments

@birender
Copy link

Hi,
How to Get Current Date in User Readable Form in Nodejs

Thanks

@kahwee
Copy link

kahwee commented Aug 12, 2016

I'm assuming you like to see the current date printed out to display back to the user.

You can do this in JavaScript:

new Date(Date.now()).toLocaleString();

If you want to do formatting, you can try moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants