Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

moment.js 예제

node v8.16.1
version: 1.0.0
endpointsharetweet
const moment = require("moment") moment.locale('ko'); const now = moment(); console.log(now.format("dddd, MMMM Do YYYY, h:mm:ss a")); // 일요일, 12월 10일 2017, 1:02:42 오후 console.log(now.subtract(7, 'days').calendar()); // 2017.12.03 console.log(moment("20120101", "YYYYMMDD").fromNow()); // 6년 전require("moment")
Loading…

no comments

    sign in to comment