Skip to content

Instantly share code, notes, and snippets.

@erasmo-marin
Created April 3, 2017 01:08
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 erasmo-marin/64196e9463ab45bae6cfe9c4f7cd90eb to your computer and use it in GitHub Desktop.
Save erasmo-marin/64196e9463ab45bae6cfe9c4f7cd90eb to your computer and use it in GitHub Desktop.
const determineDate = () => {
import('moment').then((moment) => {
console.log(moment().format());
}).catch((err) => {
console.log('Failed to load moment', err);
});
}
determineDate();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment