day.js

install

npm install dayjs --save

example

dayjs('2018-08-08') // parse
dayjs().format('{YYYY} MM-DDTHH:mm:ss SSS [Z] A') // display
dayjs().set('month', 3).month() // get & set
dayjs().add(1, 'year') // manipulate
dayjs().isBefore(dayjs()) // query

i18n

import 'dayjs/locale/ko' // load on demand
dayjs.locale('ko') // use Korean locale globally
dayjs('2021-05-05').locale('ko-kr').format() // use Korean locale in a specific instance
What Else?
inflearn react api server -50% 할인쿠폰: 15108-f2af1e086101 buy me a coffee