MomentJS - UTC



This method sets a flag on the original moment to use UTC to display a moment instead of the original moment's time.

Syntax

moment().utc();

Example

var day = moment().utc();

Output

Utc Ex
momentjs_manipulate_date_and_time.htm
Advertisements