format("X") in moment js code example Example: momentjs utcoffset moment().utcOffset() // will output 60 (for example)