Created
July 25, 2021 09:48
-
-
Save whatl3y/ae917a36b7b37b22bc21fdfbef0e07fc to your computer and use it in GitHub Desktop.
Parse a timestamp as provided by an etherscan transaction hash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dayjs from 'dayjs' | |
dayjs('Jul-24-2021 00:00:00 PM +00:00', 'MMM-D-YYYY hh:mm:ss A Z') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment