MomentJS - Is Daylight Saving Time


Advertisements

This method returns true or false if the current moment falls in daylight saving time.

Syntax

moment().isDST();

Example

var isdylight = moment().isDST();

Output

Daylight

If date is not given it will check for the current time.

Example

var isdylight = moment([2017, 2, 14]).isDST();

Output

Daylight Current Time
momentjs_date_queries.htm
Advertisements