New Feature - Format date in second to milliseconds(JS) #4019
jeftarmascarenhas
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When we working with blockchain date, the we set or get date in second but Javascript use date in milliseconds.
It's common we need to create a formating function transform second to milliseconds.
Ex:
javascript
new Date(ethers.toNumber(timestamp) * 1000)
My proposal feature is create a
parseDate
andformatDate
date to date implementing to be easier.If it's a good idea I can implement this feature.
Beta Was this translation helpful? Give feedback.
All reactions