python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Importing `day.js` doesn't work in my extension despite being usable in the console
I'm trying to use the day.js library in my extension. Data is passed using browser.runtime.sendMessage() from my content script to my background script, which is where I use day.js.
Oddly enough, Erro...
Paul
Votes: 0
Answers: 0
How to ignore GMT-offset in the date string
The date I'm receiving is 2022-04-01T19:49:58-0600 and I need to show that 19:49 without calculating the GMT (-0600)
I tried this in moment.js and it worked:
moment('2022-04-01T19:49:58-0600').utcOffs...
sina123456
Votes: 0
Answers: 1
How can I export a plugin from dayjs() in Javascript?
I am using the plugin isToday() to extend the functionality of dayjs() but I don't know how to export isToday() so I can use it in other files.
import isToday from "dayjs/plugin/isToday";
e...
Michael Horvilleur
Votes: 0
Answers: 1
dayjs with i18next set locale not working
I use dayjs, and I want to change the locale with the current languages of i18next.language
but its not working, I get only the english format.
...
import dayjs from 'dayjs';
const { t, i18n } = useTr...
universe11
Votes: 0
Answers: 2