Javascript moment - timezone, difference between dates in different time zones
问题 I have: var now = moment.format(); //get current time var days = 5; //days I need to subtract from time(then) var then = '05/02/2016 12:00 am'; Now I need to get difference between now and then substract(-) 5 days but in +0000 so GMT +0. so now must be in user localtime and then must be at +0000 GMT. How I can get difference between this dates in days, hours, minutes, seconds? I try: var now = moment().format(); var then = moment('05/02/2016 12:00 am').utcOffset(+0000).format(); then = moment