We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't know how to install specific plugins.
The docs only provide an answer on how to use them, but not on how to install them. I want to use timezone and utc e.g.
timezone
utc
The text was updated successfully, but these errors were encountered:
// YARN yarn add dayjs // NPM npm i dayjs
After that you just import and extend
import dayjs from 'dayjs'; import utc from 'dayjs/plugin/utc'; import timezone from 'dayjs/plugin/timezone'; dayjs.extend(utc); dayjs.extend(timezone); dayjs.tz.setDefault('Asia/Tokyo'); dayjs.utc().format('YYYY-MM-DD HH:mm:ssZ');
Sorry, something went wrong.
aight, I will try it out. But I did install dayjs with npm install dayjs and the plugins were not found.
npm install dayjs
No branches or pull requests
I don't know how to install specific plugins.
The docs only provide an answer on how to use them, but not on how to install them.
I want to use
timezone
andutc
e.g.The text was updated successfully, but these errors were encountered: