Skip to main content
Version: 8.1

dateIsDaylight

This function is used by Ignition's Expression language.

Description​

Checks to see if the current timezone is using daylight savings time during the date specified. Will use the current date if no date is specified.

Syntax​

dateIsDaylight([date])

  • Parameters

    • Date date - The date to use. Will use the current date if omitted. [optional]
  • Results

    • Boolean - True if the current time zone is using Daylight Saving Time during the specified date.

Code Examples​

Code Snippet
dateIsDaylight(toDate("2007-06-28 00:00:00")) // Will return True in the US/Pacific Timezone, due to that time zone's observation of Daylight Saving Time on the specified date.