A simple and awesome method:
yourDate.toISOString().split('T')[0]
But be careful! This result based on UTC date and time.
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
Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.
Bogdan -
Abhirupa Mitra -
Burhanuddin S. Tinwala -
Ravin Rau -
Top comments (3)
To get locale date and time, use
new Date().getTimezoneOffset()
in minutes, so it becomesI prefer this
It work, thanks dut