SQL Eval Function DateTime_IsDaylightSavingTime

DateTime_IsDaylightSavingTime indicates whether currDate instance of DateTime is within the daylight saving time range for the current time zone.

DateTime_IsDaylightSavingTime (
	@currDate DATETIME,
	)
RETURNS BIT

Parameters

  • currDate: The current datetime object.

Returns

true if the value of the 'currDate' instance of DateTime is within the daylight saving time range for the local time zone; false if Kind is Utc.

Example

SELECT SQLNET::DateTime_IsDaylightSavingTime('2018-12-01')

Contents