Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Vipul Kapoor
    @VeeK727
    Hi Guys. I'm having a wierd issue. I'm trying to using moment in my custom plugin but I get an error moment is not a function. I've looked around but didn't find a solution. Do I have to do something special for it to work inside a plugin definition?
            console.log(moment()); //works
        $.fn.datepicker = function(options){
            console.log(moment()); //doesn't work
        });
    Dawid Paweł Sowa
    @owlcode
    Hello, assigning anonymous function may cause problems with this. Try doing
     $.fn.datepicker = (options) => {
            console.log(moment()); 
        });
    Niraj Nandish
    @Nirajn2311
    Hi i have two var storing two dates and i would like to store the difference (number of days between them) of the 2 days in a third var and im confused on what to use
    HeiVask
    @HeiVask

    @Nirajn2311

    const date1 = moment('2000-01-01');
    const date2 = moment('2000-02-01');
    const diff = date2.diff(date1, 'days'); // 31

    https://momentjs.com/docs/#/displaying/difference/

    kelly
    @kellyprankin
    How can I go from a time like 8:0 to 08:00 using moment?
    or 17:0 to 17:00
    tried a lot of things and none of them worked
    HeiVask
    @HeiVask
    @kellyprankin moment('8:0', 'H:m').format('HH:mm')
    See https://momentjs.com/docs/#/displaying/format/
    kelly
    @kellyprankin
    the problem is that sometimes its 17:0
    so 'H:m' does not suffice
    HeiVask
    @HeiVask
    @kellyprankin well maybe you've to prepare the string first: https://codepen.io/heivask/pen/MMPBWw
    Huy Vo
    @huyvohcmc
    Can I parse a datetime from for example 2019-07-16T03:20:40.156Z to UTC+07:00?
    Olu Niyi-Awosusi
    @oluoluoxenfree
    Is moment still under active development?
    bugproof
    @bugproof
    I have a question
    when using typescript do you also use Moment instead of Date in your models?
    Ikechukwu Eze
    @iykekings
    @HeiVask this works moment('17:0', 'H:m').format('HH:mm') // "17:00"
    Ikechukwu Eze
    @iykekings
    @bugproof Date works pretty fine
    Andrew Kralovec
    @AndrewKralovec
    Hey everyone

    Im having a moment time issue. The time, that moment displays, is off by an hour (best guess is timezone at the moment). When i display the time in node & then in my terminal, you can see the times don't match. Which i don't understand, because they are both being running locally.
    On another computer, they do match. Does anyone have an idea what could cause this?

    image.png

    eederz
    @eederz
    Hi Everyone :D , Im using momentjs with polymer. I get this error , does anyone have an ideawhat could cause this? :(
    image.png
    eederz
    @eederz
    Nevermind , it was my fault haha, thanks :D
    Aquiles Maior | O BarbaNeja
    @aquilesmaior_twitter
    o horário de verão no brasil ainda está incorreto, pois aqui o presidente cancela o mesmo. Alguém mais teve problemas hoje?
    daylight saving time in brazil is still incorrect, because here the president cancels it. Has anyone else had problems today?
    Alexey Seliverstov
    @seliver
    image.png
    for some reason there's this undefined section in the moment.js website
    Luke
    @harkue
    Is anyone here?
    CoderSudaWuda
    @CoderSudaWuda
    Hey
    Is it possible to subtract something like 02:00:00 with 00:00:01
    without using moment to get the 02:00:00
    he
    sound of wind and cobwebs
    Priyam1464
    @Priyam1464
    Hi I am new here.i wanted to contribute.I cloned the repo but don't know how to run the library \
    Tan Yuanhong
    @le0tan
    Is anyone reviewing PRs for this project?
    shifenis
    @shifenis
    Hey, I'm following up on the standard (see #1407). How can I get the current date?
    And I have to check if the current date is in range (isBetween(?))
    Abhishek Chaudhary
    @theabbie
    hi
    Jon
    @jonwalch
    Hey all, I'm debugging a strange issue. I'm using BrowserStack and OSX Catalina + Chrome 79 to reproduce. It seems that moment.utc() returns an object that consistently is 30 seconds in the past. Has anyone seen this before?
    Jonas Amundsen
    @badeball
    I had the unfortune of forgetting to escape the literal "at" in my format-string when parsing and got a surprising result
    moment("24. Mar 2020 at 12:53", "DD. MMM YYYY at HH:mm", true).format();
    // => "2020-03-24T00:53:00+01:00"
    moment("24. Mar 2020 at 13:53", "DD. MMM YYYY at HH:mm", true).format();
    // => "2020-03-24T13:53:00+01:00"
    Why does it not yield an "invalid date" error when in strict mode?
    Kyrielight0996
    @Kyrielight0996
    Hello guys, i have a question
    i have a date object in an angular table, and i wanna extract the date on the displayed column
    any tips ?
    to sum up, it mean to extract the existed date object using momentjs
    Yosi
    @yosiasz
    Greetings, would like to contribute Amharic/Ethiopic to moment
    Chris Grant
    @ChrisGrant
    I'm struggling with something. I need to calculate a student's year group. I have the date they signed up and the year they were in when they signed up (as a number), but the school year increments on the 1st of September. Can moment help me to calculate the year group based on this?
    Max Ammann
    @maxammann

    Hello, I want to add support for the Tigrinya locale to moment.
    Is there a standard procedure in order to satisy the quality of the locales?

    moment/moment#5438

    Yosi
    @yosiasz

    @maxammann

    Greetings, would like to contribute Amharic/Ethiopic to moment

    Yosi
    @yosiasz
    what is the minimum version of node required to contribute to moment?