MomentJS - Local


Advertisements

With the local method, it gives time to display a moment instead of the original moment's time.

Syntax

moment().local();

Example

var day = moment().local();

Output

Local
momentjs_manipulate_date_and_time.htm
Advertisements