Skip to content

Instantly share code, notes, and snippets.

@whatl3y
Created July 25, 2021 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatl3y/ae917a36b7b37b22bc21fdfbef0e07fc to your computer and use it in GitHub Desktop.
Save whatl3y/ae917a36b7b37b22bc21fdfbef0e07fc to your computer and use it in GitHub Desktop.
Parse a timestamp as provided by an etherscan transaction hash
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