Skip to content Skip to sidebar Skip to footer
Showing posts with the label Momentjs

User Input Date Comparison In Javascript And Moment.js

I'm trying to compare two user input dates which is not related to the current or today's d… Read more User Input Date Comparison In Javascript And Moment.js

Processing Localised Date To Convert It To Local Date/time Using Moment.js

I am getting translated UTC date from the backend and need to convert the date to localised local t… Read more Processing Localised Date To Convert It To Local Date/time Using Moment.js

Moment Fromnow Returns In 5 Hours When Parsing Utc

trying to format utc time from server in time ago using moment.js fromNow but in some occasions I g… Read more Moment Fromnow Returns In 5 Hours When Parsing Utc

Set Specific Time In Specific Timezone Using Momentjs

I am making a web-app and my users need to select a specific time in a specific time zone. For exa… Read more Set Specific Time In Specific Timezone Using Momentjs

Moment.js Only Within The Last Week

I am using moment.js 'timeAgo' to display some dates. But I only want to use moment.js if t… Read more Moment.js Only Within The Last Week

Moment.js Check A Date Is Today

How do I check a date is actually today (the same date) rather than the difference between hours in… Read more Moment.js Check A Date Is Today

Momentjs And Timezone/utc Calculations

I have a JavaScript date object which has come from an API; but when I use Moment to do some date m… Read more Momentjs And Timezone/utc Calculations

How To Format Decimal Hours Greater Than 24 Hours Into Hours Minutes In Javascript

I have seen many posts about decimal hours to hours:minutes, but I have not found any that work for… Read more How To Format Decimal Hours Greater Than 24 Hours Into Hours Minutes In Javascript

How To Sort Dates Below 1970 In Javascript?

so I am sorting dates and there is one date of 1967-08-07, what would be the correct approach to it… Read more How To Sort Dates Below 1970 In Javascript?

Momentjs Todate() - Timezone Gets Reset

I am working with momentjs and converting dates to different time zones using convertedDate = momen… Read more Momentjs Todate() - Timezone Gets Reset

How To Properly Convert End_time Timestamp Into Date

I'm requesting data from Facebook Insights API with granularity set to a day, let's take li… Read more How To Properly Convert End_time Timestamp Into Date

Momentjs Time In Spanish

I am using the next code to convert a date received from a MySQL database format 1993-10-23 00:00:0… Read more Momentjs Time In Spanish

How To Disable Moment.js Daylight Timezone Conversion

It is possible to disable the daylight timezone conversion in moment.js? http://plnkr.co/edit/MjFel… Read more How To Disable Moment.js Daylight Timezone Conversion

Dygraph Showing Dates In An Arbitrary Timezone

I needed to get Dygraph to respect arbitrary timezones. All dates shown in/on/around the graph shou… Read more Dygraph Showing Dates In An Arbitrary Timezone

Moment Js Add Function Is Not Working

Literally, moment().add() is not working in my js code. In this code, I used moment add twice. Fir… Read more Moment Js Add Function Is Not Working

Angular Moment : Moment Timezone Has No Data For America/new_york

Date received from server is in UTC timezone and I need to convert it to a particular timezone, for… Read more Angular Moment : Moment Timezone Has No Data For America/new_york

Moment.js Timezone Inconsistency

I am formatting a given date using momentjs. The following behaves differently in different timezon… Read more Moment.js Timezone Inconsistency

Round Moment.js Object Time To Nearest 30 Minute Interval

I was trying to round the moment.js time object to next nearest 30 minute interval. But looks my lo… Read more Round Moment.js Object Time To Nearest 30 Minute Interval

Rounding Time Duration Of Difference To End Of Day To Whole Hours In Momentjs?

EDIT: This is not a duplicate of round up/ round down a momentjs moment to nearest minute - because… Read more Rounding Time Duration Of Difference To End Of Day To Whole Hours In Momentjs?

Jest Mock Moment() To Return Specific Date

I know this question has been asked multiple times. But I could not find the correct one for my cas… Read more Jest Mock Moment() To Return Specific Date