Skip to content

Instantly share code, notes, and snippets.

@Falciighol
Created November 12, 2019 21:45
[Console Script Call] Call an external or local script from console #js #bp
document.head.appendChild(Object.assign(
document.createElement('script'),
{ src: 'https://momentjs.com/downloads/moment-with-locales.js' }
));
// Example
console.log(moment("2011-10-31", "YYYY-MM-DD").format('DD/MM/YYYY'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment