๐Ÿ‘จ‍๐Ÿ’ป kimtongting
article thumbnail
[React] date format / moment / react YYYYMMDD YYYY-MM-DD

const currentDate = new Date() console.log(currentDate) //Output: 2022-01-29T10:03:47.564Z ์ด์ œ๊ป ๋ด์™”๋˜ Javascript์˜ ํ˜•์‹์ด๋‹ค! ๐Ÿ“”Monent ๐Ÿ“„How to Install ๐Ÿ“npm ๋˜๋Š” yarn ์„ ์ด์šฉํ•œ ์„ค์น˜ ๋ช…๋ น์–ด $ npm install moment --save // ๋˜๋Š” $ yarn add moment ๐Ÿ“„ Code Sample ์ฝ”๋“œ ์˜ˆ์ œ import "./index.css" import Moment from 'moment'; import "moment/locale/ko"; // Locale Setting function App() { const formatDate = Moment().format('YYYY-MM-DD'..