Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var date = moment().format("YYYY/MM/DD");
- console.log(date);
- Deprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.
- var date = moment().format("YYYY/MM/DD", "ddd, YYYY MM DD HH:mm:ss ZZ");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement