MomentJS - Minimum


Advertisements

This method gives the minimum from the moment instance.

Syntax

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

Example

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

Output

Minimum
momentjs_getter_setter.htm
Advertisements