Created
November 12, 2019 21:45
-
-
Save Falciighol/69518c39e0c3895cc60682800123447a to your computer and use it in GitHub Desktop.
[Console Script Call] Call an external or local script from console #js #bp
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
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