- MomentJS Tutorial
- MomentJS - Home
- MomentJS - Overview
- MomentJS - Environment Setup
- MomentJS - Introduction
- MomentJS - Parsing Date And Time
- MomentJS - Date Validation
- MomentJS - Getter/Setter
- Manipulate Date And Time
- Formatting Date And Time
- MomentJS - Date Queries
- MomentJS - Internationalization
- MomentJS - Customization
- MomentJS - Durations
- MomentJS - Utilities
- MomentJS - Plugins
- MomentJS - Examples
- MomentJS Useful Resources
- MomentJS - Quick Guide
- MomentJS - Useful Resources
- MomentJS - Discussion
MomentJS - Is Daylight Saving Time
This method returns true or false if the current moment falls in daylight saving time.
Syntax
moment().isDST();
Example
var isdylight = moment().isDST();
Output
If date is not given it will check for the current time.
Example
var isdylight = moment([2017, 2, 14]).isDST();
Output
momentjs_date_queries.htm
Advertisements