Thus your diff is being computed on which day of the week, which has to be between 1 and 7. Another common argument against using moment in modern applications is its size. Moment doesn't work well with modern tree shaking algorithms, so it tends to increase.
I am trying to understand the momentjs api. I'm able to get the difference between two dates using momentjs as follows: Formatcalendardate = function (datetime) { return moment.utc(datetime).format('lll');
Change the language of moment.js by using the locale method to set or get the desired language. Moment (end.diff (starttime)).format (m [m] s [s]) however, i also want to display the hour when applicable. The second moment().utc(date) is for manipulating the current time (moment()) and the date parameter is useless since this.utc() in this case doesn't expect any params. Format('e') stands for day of week.
28 februari 2013 09:24 but i would like to. I'm using moment.js to format my date time, here i have two date values, and i want to achieve a particular function when one date is greater than the other.