JSPM

  • Created
  • Published
  • Downloads 30681179
  • Score
    100M100P100Q221272F
  • License MIT

2KB immutable date time library alternative to Moment.js with the same modern API

Package Exports

  • dayjs
  • dayjs/dayjs.min
  • dayjs/dayjs.min.js
  • dayjs/esm
  • dayjs/esm/constant
  • dayjs/esm/constant.js
  • dayjs/esm/index
  • dayjs/esm/index.js
  • dayjs/esm/locale/af
  • dayjs/esm/locale/af.js
  • dayjs/esm/locale/am
  • dayjs/esm/locale/am.js
  • dayjs/esm/locale/ar
  • dayjs/esm/locale/ar-dz
  • dayjs/esm/locale/ar-dz.js
  • dayjs/esm/locale/ar-iq
  • dayjs/esm/locale/ar-iq.js
  • dayjs/esm/locale/ar-kw
  • dayjs/esm/locale/ar-kw.js
  • dayjs/esm/locale/ar-ly
  • dayjs/esm/locale/ar-ly.js
  • dayjs/esm/locale/ar-ma
  • dayjs/esm/locale/ar-ma.js
  • dayjs/esm/locale/ar-sa
  • dayjs/esm/locale/ar-sa.js
  • dayjs/esm/locale/ar-tn
  • dayjs/esm/locale/ar-tn.js
  • dayjs/esm/locale/ar.js
  • dayjs/esm/locale/az
  • dayjs/esm/locale/az.js
  • dayjs/esm/locale/be
  • dayjs/esm/locale/be.js
  • dayjs/esm/locale/bg
  • dayjs/esm/locale/bg.js
  • dayjs/esm/locale/bi
  • dayjs/esm/locale/bi.js
  • dayjs/esm/locale/bm
  • dayjs/esm/locale/bm.js
  • dayjs/esm/locale/bn
  • dayjs/esm/locale/bn-bd
  • dayjs/esm/locale/bn-bd.js
  • dayjs/esm/locale/bn.js
  • dayjs/esm/locale/bo
  • dayjs/esm/locale/bo.js
  • dayjs/esm/locale/br
  • dayjs/esm/locale/br.js
  • dayjs/esm/locale/bs
  • dayjs/esm/locale/bs.js
  • dayjs/esm/locale/ca
  • dayjs/esm/locale/ca.js
  • dayjs/esm/locale/cs
  • dayjs/esm/locale/cs.js
  • dayjs/esm/locale/cv
  • dayjs/esm/locale/cv.js
  • dayjs/esm/locale/cy
  • dayjs/esm/locale/cy.js
  • dayjs/esm/locale/da
  • dayjs/esm/locale/da.js
  • dayjs/esm/locale/de
  • dayjs/esm/locale/de-at
  • dayjs/esm/locale/de-at.js
  • dayjs/esm/locale/de-ch
  • dayjs/esm/locale/de-ch.js
  • dayjs/esm/locale/de.js
  • dayjs/esm/locale/dv
  • dayjs/esm/locale/dv.js
  • dayjs/esm/locale/el
  • dayjs/esm/locale/el.js
  • dayjs/esm/locale/en
  • dayjs/esm/locale/en-au
  • dayjs/esm/locale/en-au.js
  • dayjs/esm/locale/en-ca
  • dayjs/esm/locale/en-ca.js
  • dayjs/esm/locale/en-gb
  • dayjs/esm/locale/en-gb.js
  • dayjs/esm/locale/en-ie
  • dayjs/esm/locale/en-ie.js
  • dayjs/esm/locale/en-il
  • dayjs/esm/locale/en-il.js
  • dayjs/esm/locale/en-in
  • dayjs/esm/locale/en-in.js
  • dayjs/esm/locale/en-nz
  • dayjs/esm/locale/en-nz.js
  • dayjs/esm/locale/en-sg
  • dayjs/esm/locale/en-sg.js
  • dayjs/esm/locale/en-tt
  • dayjs/esm/locale/en-tt.js
  • dayjs/esm/locale/en.js
  • dayjs/esm/locale/eo
  • dayjs/esm/locale/eo.js
  • dayjs/esm/locale/es
  • dayjs/esm/locale/es-do
  • dayjs/esm/locale/es-do.js
  • dayjs/esm/locale/es-mx
  • dayjs/esm/locale/es-mx.js
  • dayjs/esm/locale/es-pr
  • dayjs/esm/locale/es-pr.js
  • dayjs/esm/locale/es-us
  • dayjs/esm/locale/es-us.js
  • dayjs/esm/locale/es.js
  • dayjs/esm/locale/et
  • dayjs/esm/locale/et.js
  • dayjs/esm/locale/eu
  • dayjs/esm/locale/eu.js
  • dayjs/esm/locale/fa
  • dayjs/esm/locale/fa.js
  • dayjs/esm/locale/fi
  • dayjs/esm/locale/fi.js
  • dayjs/esm/locale/fo
  • dayjs/esm/locale/fo.js
  • dayjs/esm/locale/fr
  • dayjs/esm/locale/fr-ca
  • dayjs/esm/locale/fr-ca.js
  • dayjs/esm/locale/fr-ch
  • dayjs/esm/locale/fr-ch.js
  • dayjs/esm/locale/fr.js
  • dayjs/esm/locale/fy
  • dayjs/esm/locale/fy.js
  • dayjs/esm/locale/ga
  • dayjs/esm/locale/ga.js
  • dayjs/esm/locale/gd
  • dayjs/esm/locale/gd.js
  • dayjs/esm/locale/gl
  • dayjs/esm/locale/gl.js
  • dayjs/esm/locale/gom-latn
  • dayjs/esm/locale/gom-latn.js
  • dayjs/esm/locale/gu
  • dayjs/esm/locale/gu.js
  • dayjs/esm/locale/he
  • dayjs/esm/locale/he.js
  • dayjs/esm/locale/hi
  • dayjs/esm/locale/hi.js
  • dayjs/esm/locale/hr
  • dayjs/esm/locale/hr.js
  • dayjs/esm/locale/ht
  • dayjs/esm/locale/ht.js
  • dayjs/esm/locale/hu
  • dayjs/esm/locale/hu.js
  • dayjs/esm/locale/hy-am
  • dayjs/esm/locale/hy-am.js
  • dayjs/esm/locale/id
  • dayjs/esm/locale/id.js
  • dayjs/esm/locale/is
  • dayjs/esm/locale/is.js
  • dayjs/esm/locale/it
  • dayjs/esm/locale/it-ch
  • dayjs/esm/locale/it-ch.js
  • dayjs/esm/locale/it.js
  • dayjs/esm/locale/ja
  • dayjs/esm/locale/ja.js
  • dayjs/esm/locale/jv
  • dayjs/esm/locale/jv.js
  • dayjs/esm/locale/ka
  • dayjs/esm/locale/ka.js
  • dayjs/esm/locale/kk
  • dayjs/esm/locale/kk.js
  • dayjs/esm/locale/km
  • dayjs/esm/locale/km.js
  • dayjs/esm/locale/kn
  • dayjs/esm/locale/kn.js
  • dayjs/esm/locale/ko
  • dayjs/esm/locale/ko.js
  • dayjs/esm/locale/ku
  • dayjs/esm/locale/ku.js
  • dayjs/esm/locale/ky
  • dayjs/esm/locale/ky.js
  • dayjs/esm/locale/lb
  • dayjs/esm/locale/lb.js
  • dayjs/esm/locale/lo
  • dayjs/esm/locale/lo.js
  • dayjs/esm/locale/lt
  • dayjs/esm/locale/lt.js
  • dayjs/esm/locale/lv
  • dayjs/esm/locale/lv.js
  • dayjs/esm/locale/me
  • dayjs/esm/locale/me.js
  • dayjs/esm/locale/mi
  • dayjs/esm/locale/mi.js
  • dayjs/esm/locale/mk
  • dayjs/esm/locale/mk.js
  • dayjs/esm/locale/ml
  • dayjs/esm/locale/ml.js
  • dayjs/esm/locale/mn
  • dayjs/esm/locale/mn.js
  • dayjs/esm/locale/mr
  • dayjs/esm/locale/mr.js
  • dayjs/esm/locale/ms
  • dayjs/esm/locale/ms-my
  • dayjs/esm/locale/ms-my.js
  • dayjs/esm/locale/ms.js
  • dayjs/esm/locale/mt
  • dayjs/esm/locale/mt.js
  • dayjs/esm/locale/my
  • dayjs/esm/locale/my.js
  • dayjs/esm/locale/nb
  • dayjs/esm/locale/nb.js
  • dayjs/esm/locale/ne
  • dayjs/esm/locale/ne.js
  • dayjs/esm/locale/nl
  • dayjs/esm/locale/nl-be
  • dayjs/esm/locale/nl-be.js
  • dayjs/esm/locale/nl.js
  • dayjs/esm/locale/nn
  • dayjs/esm/locale/nn.js
  • dayjs/esm/locale/oc-lnc
  • dayjs/esm/locale/oc-lnc.js
  • dayjs/esm/locale/pa-in
  • dayjs/esm/locale/pa-in.js
  • dayjs/esm/locale/pl
  • dayjs/esm/locale/pl.js
  • dayjs/esm/locale/pt
  • dayjs/esm/locale/pt-br
  • dayjs/esm/locale/pt-br.js
  • dayjs/esm/locale/pt.js
  • dayjs/esm/locale/rn
  • dayjs/esm/locale/rn.js
  • dayjs/esm/locale/ro
  • dayjs/esm/locale/ro.js
  • dayjs/esm/locale/ru
  • dayjs/esm/locale/ru.js
  • dayjs/esm/locale/rw
  • dayjs/esm/locale/rw.js
  • dayjs/esm/locale/sd
  • dayjs/esm/locale/sd.js
  • dayjs/esm/locale/se
  • dayjs/esm/locale/se.js
  • dayjs/esm/locale/si
  • dayjs/esm/locale/si.js
  • dayjs/esm/locale/sk
  • dayjs/esm/locale/sk.js
  • dayjs/esm/locale/sl
  • dayjs/esm/locale/sl.js
  • dayjs/esm/locale/sq
  • dayjs/esm/locale/sq.js
  • dayjs/esm/locale/sr
  • dayjs/esm/locale/sr-cyrl
  • dayjs/esm/locale/sr-cyrl.js
  • dayjs/esm/locale/sr.js
  • dayjs/esm/locale/ss
  • dayjs/esm/locale/ss.js
  • dayjs/esm/locale/sv
  • dayjs/esm/locale/sv-fi
  • dayjs/esm/locale/sv-fi.js
  • dayjs/esm/locale/sv.js
  • dayjs/esm/locale/sw
  • dayjs/esm/locale/sw.js
  • dayjs/esm/locale/ta
  • dayjs/esm/locale/ta.js
  • dayjs/esm/locale/te
  • dayjs/esm/locale/te.js
  • dayjs/esm/locale/tet
  • dayjs/esm/locale/tet.js
  • dayjs/esm/locale/tg
  • dayjs/esm/locale/tg.js
  • dayjs/esm/locale/th
  • dayjs/esm/locale/th.js
  • dayjs/esm/locale/tk
  • dayjs/esm/locale/tk.js
  • dayjs/esm/locale/tl-ph
  • dayjs/esm/locale/tl-ph.js
  • dayjs/esm/locale/tlh
  • dayjs/esm/locale/tlh.js
  • dayjs/esm/locale/tr
  • dayjs/esm/locale/tr.js
  • dayjs/esm/locale/tzl
  • dayjs/esm/locale/tzl.js
  • dayjs/esm/locale/tzm
  • dayjs/esm/locale/tzm-latn
  • dayjs/esm/locale/tzm-latn.js
  • dayjs/esm/locale/tzm.js
  • dayjs/esm/locale/ug-cn
  • dayjs/esm/locale/ug-cn.js
  • dayjs/esm/locale/uk
  • dayjs/esm/locale/uk.js
  • dayjs/esm/locale/ur
  • dayjs/esm/locale/ur.js
  • dayjs/esm/locale/uz
  • dayjs/esm/locale/uz-latn
  • dayjs/esm/locale/uz-latn.js
  • dayjs/esm/locale/uz.js
  • dayjs/esm/locale/vi
  • dayjs/esm/locale/vi.js
  • dayjs/esm/locale/x-pseudo
  • dayjs/esm/locale/x-pseudo.js
  • dayjs/esm/locale/yo
  • dayjs/esm/locale/yo.js
  • dayjs/esm/locale/zh
  • dayjs/esm/locale/zh-cn
  • dayjs/esm/locale/zh-cn.js
  • dayjs/esm/locale/zh-hk
  • dayjs/esm/locale/zh-hk.js
  • dayjs/esm/locale/zh-tw
  • dayjs/esm/locale/zh-tw.js
  • dayjs/esm/locale/zh.js
  • dayjs/esm/plugin/advancedFormat
  • dayjs/esm/plugin/advancedFormat/index
  • dayjs/esm/plugin/advancedFormat/index.js
  • dayjs/esm/plugin/arraySupport
  • dayjs/esm/plugin/arraySupport/index.js
  • dayjs/esm/plugin/customParseFormat
  • dayjs/esm/plugin/customParseFormat/index
  • dayjs/esm/plugin/customParseFormat/index.js
  • dayjs/esm/plugin/dayOfYear
  • dayjs/esm/plugin/dayOfYear/index.js
  • dayjs/esm/plugin/duration
  • dayjs/esm/plugin/duration/index.js
  • dayjs/esm/plugin/isBetween
  • dayjs/esm/plugin/isBetween/index.js
  • dayjs/esm/plugin/isLeapYear
  • dayjs/esm/plugin/isLeapYear/index.js
  • dayjs/esm/plugin/isSameOrAfter
  • dayjs/esm/plugin/isSameOrAfter/index.js
  • dayjs/esm/plugin/isSameOrBefore
  • dayjs/esm/plugin/isSameOrBefore/index.js
  • dayjs/esm/plugin/isToday
  • dayjs/esm/plugin/isToday/index.js
  • dayjs/esm/plugin/isoWeek
  • dayjs/esm/plugin/isoWeek/index.js
  • dayjs/esm/plugin/isoWeeksInYear
  • dayjs/esm/plugin/isoWeeksInYear/index.js
  • dayjs/esm/plugin/localeData
  • dayjs/esm/plugin/localeData/index
  • dayjs/esm/plugin/localeData/index.js
  • dayjs/esm/plugin/localizedFormat
  • dayjs/esm/plugin/localizedFormat/index.js
  • dayjs/esm/plugin/localizedFormat/utils
  • dayjs/esm/plugin/localizedFormat/utils.js
  • dayjs/esm/plugin/minMax
  • dayjs/esm/plugin/minMax/index.js
  • dayjs/esm/plugin/objectSupport
  • dayjs/esm/plugin/objectSupport/index.js
  • dayjs/esm/plugin/preParsePostFormat
  • dayjs/esm/plugin/preParsePostFormat/index.js
  • dayjs/esm/plugin/quarterOfYear
  • dayjs/esm/plugin/quarterOfYear/index.js
  • dayjs/esm/plugin/relativeTime
  • dayjs/esm/plugin/relativeTime/index.js
  • dayjs/esm/plugin/timezone
  • dayjs/esm/plugin/timezone/index.js
  • dayjs/esm/plugin/toObject
  • dayjs/esm/plugin/toObject/index.js
  • dayjs/esm/plugin/updateLocale
  • dayjs/esm/plugin/updateLocale/index.js
  • dayjs/esm/plugin/utc
  • dayjs/esm/plugin/utc/index
  • dayjs/esm/plugin/utc/index.js
  • dayjs/esm/plugin/weekOfYear
  • dayjs/esm/plugin/weekOfYear/index
  • dayjs/esm/plugin/weekOfYear/index.js
  • dayjs/esm/plugin/weekYear
  • dayjs/esm/plugin/weekYear/index
  • dayjs/esm/plugin/weekYear/index.js
  • dayjs/esm/plugin/weekday
  • dayjs/esm/plugin/weekday/index
  • dayjs/esm/plugin/weekday/index.js
  • dayjs/locale
  • dayjs/locale.json
  • dayjs/locale/af
  • dayjs/locale/af.js
  • dayjs/locale/am
  • dayjs/locale/am.js
  • dayjs/locale/ar
  • dayjs/locale/ar-dz
  • dayjs/locale/ar-dz.js
  • dayjs/locale/ar-iq
  • dayjs/locale/ar-iq.js
  • dayjs/locale/ar-kw
  • dayjs/locale/ar-kw.js
  • dayjs/locale/ar-ly
  • dayjs/locale/ar-ly.js
  • dayjs/locale/ar-ma
  • dayjs/locale/ar-ma.js
  • dayjs/locale/ar-sa
  • dayjs/locale/ar-sa.js
  • dayjs/locale/ar-tn
  • dayjs/locale/ar-tn.js
  • dayjs/locale/ar.js
  • dayjs/locale/az
  • dayjs/locale/az.js
  • dayjs/locale/be
  • dayjs/locale/be.js
  • dayjs/locale/bg
  • dayjs/locale/bg.js
  • dayjs/locale/bi
  • dayjs/locale/bi.js
  • dayjs/locale/bm
  • dayjs/locale/bm.js
  • dayjs/locale/bn
  • dayjs/locale/bn-bd
  • dayjs/locale/bn-bd.js
  • dayjs/locale/bn.js
  • dayjs/locale/bo
  • dayjs/locale/bo.js
  • dayjs/locale/br
  • dayjs/locale/br.js
  • dayjs/locale/bs
  • dayjs/locale/bs.js
  • dayjs/locale/ca
  • dayjs/locale/ca.js
  • dayjs/locale/cs
  • dayjs/locale/cs.js
  • dayjs/locale/cv
  • dayjs/locale/cv.js
  • dayjs/locale/cy
  • dayjs/locale/cy.js
  • dayjs/locale/da
  • dayjs/locale/da.js
  • dayjs/locale/de
  • dayjs/locale/de-at
  • dayjs/locale/de-at.js
  • dayjs/locale/de-ch
  • dayjs/locale/de-ch.js
  • dayjs/locale/de.js
  • dayjs/locale/dv
  • dayjs/locale/dv.js
  • dayjs/locale/el
  • dayjs/locale/el.js
  • dayjs/locale/en
  • dayjs/locale/en-au
  • dayjs/locale/en-au.js
  • dayjs/locale/en-ca
  • dayjs/locale/en-ca.js
  • dayjs/locale/en-gb
  • dayjs/locale/en-gb.js
  • dayjs/locale/en-ie
  • dayjs/locale/en-ie.js
  • dayjs/locale/en-il
  • dayjs/locale/en-il.js
  • dayjs/locale/en-in
  • dayjs/locale/en-in.js
  • dayjs/locale/en-nz
  • dayjs/locale/en-nz.js
  • dayjs/locale/en-sg
  • dayjs/locale/en-sg.js
  • dayjs/locale/en-tt
  • dayjs/locale/en-tt.js
  • dayjs/locale/en.js
  • dayjs/locale/eo
  • dayjs/locale/eo.js
  • dayjs/locale/es
  • dayjs/locale/es-do
  • dayjs/locale/es-do.js
  • dayjs/locale/es-mx
  • dayjs/locale/es-mx.js
  • dayjs/locale/es-pr
  • dayjs/locale/es-pr.js
  • dayjs/locale/es-us
  • dayjs/locale/es-us.js
  • dayjs/locale/es.js
  • dayjs/locale/et
  • dayjs/locale/et.js
  • dayjs/locale/eu
  • dayjs/locale/eu.js
  • dayjs/locale/fa
  • dayjs/locale/fa.js
  • dayjs/locale/fi
  • dayjs/locale/fi.js
  • dayjs/locale/fo
  • dayjs/locale/fo.js
  • dayjs/locale/fr
  • dayjs/locale/fr-ca
  • dayjs/locale/fr-ca.js
  • dayjs/locale/fr-ch
  • dayjs/locale/fr-ch.js
  • dayjs/locale/fr.js
  • dayjs/locale/fy
  • dayjs/locale/fy.js
  • dayjs/locale/ga
  • dayjs/locale/ga.js
  • dayjs/locale/gd
  • dayjs/locale/gd.js
  • dayjs/locale/gl
  • dayjs/locale/gl.js
  • dayjs/locale/gom-latn
  • dayjs/locale/gom-latn.js
  • dayjs/locale/gu
  • dayjs/locale/gu.js
  • dayjs/locale/he
  • dayjs/locale/he.js
  • dayjs/locale/hi
  • dayjs/locale/hi.js
  • dayjs/locale/hr
  • dayjs/locale/hr.js
  • dayjs/locale/ht
  • dayjs/locale/ht.js
  • dayjs/locale/hu
  • dayjs/locale/hu.js
  • dayjs/locale/hy-am
  • dayjs/locale/hy-am.js
  • dayjs/locale/id
  • dayjs/locale/id.js
  • dayjs/locale/is
  • dayjs/locale/is.js
  • dayjs/locale/it
  • dayjs/locale/it-ch
  • dayjs/locale/it-ch.js
  • dayjs/locale/it.js
  • dayjs/locale/ja
  • dayjs/locale/ja.js
  • dayjs/locale/jv
  • dayjs/locale/jv.js
  • dayjs/locale/ka
  • dayjs/locale/ka.js
  • dayjs/locale/kk
  • dayjs/locale/kk.js
  • dayjs/locale/km
  • dayjs/locale/km.js
  • dayjs/locale/kn
  • dayjs/locale/kn.js
  • dayjs/locale/ko
  • dayjs/locale/ko.js
  • dayjs/locale/ku
  • dayjs/locale/ku.js
  • dayjs/locale/ky
  • dayjs/locale/ky.js
  • dayjs/locale/lb
  • dayjs/locale/lb.js
  • dayjs/locale/lo
  • dayjs/locale/lo.js
  • dayjs/locale/lt
  • dayjs/locale/lt.js
  • dayjs/locale/lv
  • dayjs/locale/lv.js
  • dayjs/locale/me
  • dayjs/locale/me.js
  • dayjs/locale/mi
  • dayjs/locale/mi.js
  • dayjs/locale/mk
  • dayjs/locale/mk.js
  • dayjs/locale/ml
  • dayjs/locale/ml.js
  • dayjs/locale/mn
  • dayjs/locale/mn.js
  • dayjs/locale/mr
  • dayjs/locale/mr.js
  • dayjs/locale/ms
  • dayjs/locale/ms-my
  • dayjs/locale/ms-my.js
  • dayjs/locale/ms.js
  • dayjs/locale/mt
  • dayjs/locale/mt.js
  • dayjs/locale/my
  • dayjs/locale/my.js
  • dayjs/locale/nb
  • dayjs/locale/nb.js
  • dayjs/locale/ne
  • dayjs/locale/ne.js
  • dayjs/locale/nl
  • dayjs/locale/nl-be
  • dayjs/locale/nl-be.js
  • dayjs/locale/nl.js
  • dayjs/locale/nn
  • dayjs/locale/nn.js
  • dayjs/locale/oc-lnc
  • dayjs/locale/oc-lnc.js
  • dayjs/locale/pa-in
  • dayjs/locale/pa-in.js
  • dayjs/locale/pl
  • dayjs/locale/pl.js
  • dayjs/locale/pt
  • dayjs/locale/pt-br
  • dayjs/locale/pt-br.js
  • dayjs/locale/pt.js
  • dayjs/locale/rn
  • dayjs/locale/rn.js
  • dayjs/locale/ro
  • dayjs/locale/ro.js
  • dayjs/locale/ru
  • dayjs/locale/ru.js
  • dayjs/locale/rw
  • dayjs/locale/rw.js
  • dayjs/locale/sd
  • dayjs/locale/sd.js
  • dayjs/locale/se
  • dayjs/locale/se.js
  • dayjs/locale/si
  • dayjs/locale/si.js
  • dayjs/locale/sk
  • dayjs/locale/sk.js
  • dayjs/locale/sl
  • dayjs/locale/sl.js
  • dayjs/locale/sq
  • dayjs/locale/sq.js
  • dayjs/locale/sr
  • dayjs/locale/sr-cyrl
  • dayjs/locale/sr-cyrl.js
  • dayjs/locale/sr.js
  • dayjs/locale/ss
  • dayjs/locale/ss.js
  • dayjs/locale/sv
  • dayjs/locale/sv-fi
  • dayjs/locale/sv-fi.js
  • dayjs/locale/sv.js
  • dayjs/locale/sw
  • dayjs/locale/sw.js
  • dayjs/locale/ta
  • dayjs/locale/ta.js
  • dayjs/locale/te
  • dayjs/locale/te.js
  • dayjs/locale/tet
  • dayjs/locale/tet.js
  • dayjs/locale/tg
  • dayjs/locale/tg.js
  • dayjs/locale/th
  • dayjs/locale/th.js
  • dayjs/locale/tk
  • dayjs/locale/tk.js
  • dayjs/locale/tl-ph
  • dayjs/locale/tl-ph.js
  • dayjs/locale/tlh
  • dayjs/locale/tlh.js
  • dayjs/locale/tr
  • dayjs/locale/tr.js
  • dayjs/locale/tzl
  • dayjs/locale/tzl.js
  • dayjs/locale/tzm
  • dayjs/locale/tzm-latn
  • dayjs/locale/tzm-latn.js
  • dayjs/locale/tzm.js
  • dayjs/locale/ug-cn
  • dayjs/locale/ug-cn.js
  • dayjs/locale/uk
  • dayjs/locale/uk.js
  • dayjs/locale/ur
  • dayjs/locale/ur.js
  • dayjs/locale/uz
  • dayjs/locale/uz-latn
  • dayjs/locale/uz-latn.js
  • dayjs/locale/uz.js
  • dayjs/locale/vi
  • dayjs/locale/vi.js
  • dayjs/locale/x-pseudo
  • dayjs/locale/x-pseudo.js
  • dayjs/locale/yo
  • dayjs/locale/yo.js
  • dayjs/locale/zh
  • dayjs/locale/zh-cn
  • dayjs/locale/zh-cn.js
  • dayjs/locale/zh-hk
  • dayjs/locale/zh-hk.js
  • dayjs/locale/zh-tw
  • dayjs/locale/zh-tw.js
  • dayjs/locale/zh.js
  • dayjs/package.json
  • dayjs/plugin/advancedFormat
  • dayjs/plugin/advancedFormat.js
  • dayjs/plugin/arraySupport
  • dayjs/plugin/arraySupport.js
  • dayjs/plugin/badMutable
  • dayjs/plugin/badMutable.js
  • dayjs/plugin/bigIntSupport
  • dayjs/plugin/bigIntSupport.js
  • dayjs/plugin/buddhistEra
  • dayjs/plugin/buddhistEra.js
  • dayjs/plugin/calendar
  • dayjs/plugin/calendar.js
  • dayjs/plugin/customParseFormat
  • dayjs/plugin/customParseFormat.js
  • dayjs/plugin/dayOfYear
  • dayjs/plugin/dayOfYear.js
  • dayjs/plugin/devHelper
  • dayjs/plugin/devHelper.js
  • dayjs/plugin/duration
  • dayjs/plugin/duration.js
  • dayjs/plugin/isBetween
  • dayjs/plugin/isBetween.js
  • dayjs/plugin/isLeapYear
  • dayjs/plugin/isLeapYear.js
  • dayjs/plugin/isMoment
  • dayjs/plugin/isMoment.js
  • dayjs/plugin/isSameOrAfter
  • dayjs/plugin/isSameOrAfter.js
  • dayjs/plugin/isSameOrBefore
  • dayjs/plugin/isSameOrBefore.js
  • dayjs/plugin/isToday
  • dayjs/plugin/isToday.js
  • dayjs/plugin/isTomorrow
  • dayjs/plugin/isTomorrow.js
  • dayjs/plugin/isYesterday
  • dayjs/plugin/isYesterday.js
  • dayjs/plugin/isoWeek
  • dayjs/plugin/isoWeek.js
  • dayjs/plugin/isoWeeksInYear
  • dayjs/plugin/isoWeeksInYear.js
  • dayjs/plugin/localeData
  • dayjs/plugin/localeData.js
  • dayjs/plugin/localizedFormat
  • dayjs/plugin/localizedFormat.js
  • dayjs/plugin/minMax
  • dayjs/plugin/minMax.js
  • dayjs/plugin/negativeYear
  • dayjs/plugin/negativeYear.js
  • dayjs/plugin/objectSupport
  • dayjs/plugin/objectSupport.js
  • dayjs/plugin/pluralGetSet
  • dayjs/plugin/pluralGetSet.js
  • dayjs/plugin/preParsePostFormat
  • dayjs/plugin/preParsePostFormat.js
  • dayjs/plugin/quarterOfYear
  • dayjs/plugin/quarterOfYear.js
  • dayjs/plugin/relativeTime
  • dayjs/plugin/relativeTime.js
  • dayjs/plugin/timezone
  • dayjs/plugin/timezone.js
  • dayjs/plugin/toArray
  • dayjs/plugin/toArray.js
  • dayjs/plugin/toObject
  • dayjs/plugin/toObject.js
  • dayjs/plugin/updateLocale
  • dayjs/plugin/updateLocale.js
  • dayjs/plugin/utc
  • dayjs/plugin/utc.js
  • dayjs/plugin/weekOfYear
  • dayjs/plugin/weekOfYear.js
  • dayjs/plugin/weekYear
  • dayjs/plugin/weekYear.js
  • dayjs/plugin/weekday
  • dayjs/plugin/weekday.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dayjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

English | 简体中文 | 日本語 | Português Brasileiro | 한국어 | Español (España) | Русский | Türkçe | සිංහල | עברית

Day.js

Fast 2kB alternative to Moment.js with the same modern API

Gzip Size NPM Version Build Status Codecov License
Sauce Test Status

Day.js is a minimalist JavaScript library that parses, validates, manipulates, and displays dates and times for modern browsers with a largely Moment.js-compatible API. If you use Moment.js, you already know how to use Day.js.

dayjs().startOf('month').add(1, 'day').set('year', 2018).format('YYYY-MM-DD HH:mm:ss');
  • 🕒 Familiar Moment.js API & patterns
  • 💪 Immutable
  • 🔥 Chainable
  • 🌐 I18n support
  • 📦 2kb mini library
  • 👫 All browsers supported

Getting Started

Documentation

You can find more details, API, and other docs on day.js.org website.

Installation

npm install dayjs --save

📚Installation Guide

API

It's easy to use Day.js APIs to parse, validate, manipulate, and display dates and times.

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

📚API Reference

I18n

Day.js has great support for internationalization.

But none of them will be included in your build unless you use it.

import 'dayjs/locale/es' // load on demand

dayjs.locale('es') // use Spanish locale globally

dayjs('2018-05-05').locale('zh-cn').format() // use Chinese Simplified locale in a specific instance

📚Internationalization

Plugin

A plugin is an independent module that can be added to Day.js to extend functionality or add new features.

import advancedFormat from 'dayjs/plugin/advancedFormat' // load on demand

dayjs.extend(advancedFormat) // use plugin

dayjs().format('Q Do k kk X x') // more available formats

📚Plugin List

Usage Trend

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

[Become a sponsor via Github] [Become a sponsor via OpenCollective]

                                                               BestKru                   Route Optimizer and Route Planner Software                  

Contributors

This project exists thanks to all the people who contribute.

Please give us a 💖 star 💖 to support us. Thank you.

And thank you to all our backers! 🙏


License

Day.js is licensed under a MIT License.