A simple and awesome method:
yourDate.toISOString().split('T')[0]
But be careful! This result based on UTC date and time.
We're a place where coders share, stay up-to-date and grow their careers.
A simple and awesome method:
yourDate.toISOString().split('T')[0]
But be careful! This result based on UTC date and time.
For further actions, you may consider blocking this person and/or reporting abuse
Archit Sharma -
simc dev CSM® -
Ryosuke -
Abdullah Numan -
Once suspended, racztiborzoltan will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, racztiborzoltan will be able to comment and publish posts again.
Once unpublished, all posts by racztiborzoltan will become hidden and only accessible to themselves.
If racztiborzoltan is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Rácz Tibor Zoltán.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag racztiborzoltan:
Unflagging racztiborzoltan will restore default visibility to their posts.
Discussion (3)
To get locale date and time, use
new Date().getTimezoneOffset()
in minutes, so it becomesI prefer this
It work, thanks dut