MomentJS - Maximum


Advertisements

This method gives the maximum from the moment instance.

Syntax

moment.max(Moment[,Moment...]);
moment.max(Moment[]);

Example

var m = moment([2020,10,11]);
var k = moment();
var c = moment.max(m,k);

Output

Maximum
momentjs_getter_setter.htm
Advertisements