Skip to content

Instantly share code, notes, and snippets.

@iamnivekx
Created June 11, 2020 03:45
Show Gist options
  • Save iamnivekx/9f1cbfea9ba6cbc156d8cd9d5386c53f to your computer and use it in GitHub Desktop.
Save iamnivekx/9f1cbfea9ba6cbc156d8cd9d5386c53f to your computer and use it in GitHub Desktop.
JS mark
const dateFromObjectId =  (objectId) => new Date(parseInt(objectId.substring(0, 8), 16) * 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment