8,134 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
40
views
Angular plugin throws error moment is not a function
I'm implementing a plugin for displaying gantt chart.
https://github.com/abhishekjain12/ngx-time-scheduler
package.json
"dependencies": {
"@angular/animations": "^16.2.12&...
Advice
0
votes
1
replies
49
views
Using flask_moment to display a date in the web user's local format
I am learning from Miguel Grinberg's excellent Flask Mega-Tutorial and writing an app which tracks the items in two freezers. Dates are saved in UTC in the database but I want to display them in the ...
0
votes
1
answer
91
views
Time Zone name to Internalization [duplicate]
Intl.supportedValuesOf('timeZone')
Above code will give list of all time zone in en-US like below
["Africa/Abidjan", "Africa/Accra" , "Africa/Addis_Ababa", ...]
Is ...
0
votes
0
answers
61
views
Convert Unix timestamp returned from API in Python Flask app
I have got a Python Flask app that will get data from API and pass it to html template.
On html template I have following and I would like to convert the "insertionTime" from Unix timestamp ...
0
votes
1
answer
78
views
Array "includes" returns false, but item exists [closed]
What am I doing wrong?
Here is my code:
let weekends_test=[6,5];
let day_of_week_curr=moment.unix(curr_time).format('e'); //returns 6 (I'm using moment.js library)
console.log (weekends_test.includes(...
0
votes
0
answers
41
views
Angular 8, material datepicker saving correct date, but displaying previous day
I'm using Angular 8 and the Material DatePicker.
When I submit my date and time to the postgres database, it stores the date and time exactly as it is in the UI and the UI is updated and displays the ...
1
vote
0
answers
63
views
Datepicker not showing previous dates in calendar, it's showing blank spaces
Issue with @mui/x-date-pickers DesktopDatePicker – Previous Dates Not Visible
I'm using Material-UI's @mui/x-date-pickers in my React project, specifically the DesktopDatePicker. However, sometimes ...
1
vote
1
answer
185
views
How to localize ng-bootstrap datepicker specifically using moment locale?
I'm using ng-bootstrap DatePicker in my Angular project.
Without specifically specifying I18N_VALUES values for each language and utilizing the moment library, I have to internationalize it and ...
0
votes
1
answer
98
views
Get date range using moment.js
I am trying to get a Saturday to Sunday date range using moment.js.
It works up to last line and after that both start and end dates equal to end date.
Using today's date (Nov. 1, 2024), I can see ...
1
vote
1
answer
100
views
Setting moment value to specific time zone directly
We are using Moment v2.30.1. We are attempting to apply a StartDateTime to an object but it is always being set to utc(). We want to set it directly to
the America/Chicago time zone.
Here is the ...
1
vote
1
answer
106
views
How to use string time data with moment.js in Chartjs
I have an array of lap times as strings shown below:
['00:01:41.413000', '00:01:38.790000', '00:01:38.917000', '00:01:38.470000', '00:01:37.906000', '00:01:37.997000', '00:01:37.774000', '00:01:37....
0
votes
1
answer
82
views
Uncaught TypeError: Cannot read properties of undefined (reading 'fn') at moment-duration-format
I am trying to use moment-duration-format for getting duration.
https://www.npmjs.com/package/moment-duration-format
I am getting error:-
moment-duration-format.js?t=1727769487718&v=a4aab22f:155 ...
0
votes
0
answers
60
views
moment doing wrong calculations for day of the year
I am trying to find the day of the year using unix epoch and it returns 365 instead of the correct value. here is the code snippet
const momentY = moment(new Date(startDate))
startDays = momentY....
1
vote
0
answers
191
views
Vite Moment locale ignore
With webpack we used IgnorePlugin like this
const webpack = require('webpack')
module.exports = {
configureWebpack: {
plugins: [
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/...
0
votes
2
answers
128
views
How to convert this "string" to a correct date?
Struggling to display a date in javascript that is retrieved from a postgres database and returned via python.
When I simply console.log the variable I get back from my GET request, it is in this ...