---
title: "How to check a given date is DST date or not using C#?"  
description: "How to check a given date is DST date or not using C#?"  
author: "Takeshi Okada"  
published: 2013-10-22  
updated: 2013-10-22  
canonical: https://www.mindstick.com/forum/1705/how-to-check-a-given-date-is-dst-date-or-not-using-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How to check a given date is DST date or not using C#?

C# has provided a way for entered [data](https://www.mindstick.com/articles/13050/salesforce-aiming-to-dominate-predictive-analytics-with-data-science) is DST [date](https://yourviews.mindstick.com/story/3869/propose-day-2024-exciting-date-ideas-for-you-and-your-partner) or not? I want to implement in my [demo](https://www.mindstick.com/forum/157370/how-to-swap-neighbor-characters-in-string-e-g-string-demo-would-be-edom) [project](https://www.mindstick.com/articles/105927/how-to-excel-at-managing-multiple-projects) how can I use it?

## Replies

### Reply by Royce Roy

You provide a year and it will return a DaylightTime object, which contains the start and end dates for daylight saving. You can then compare your date against those two to determine if its a DLS date or not. Whilst this answer has been accepted, please see Matt Johnson's answer below for details why it's not the best answer and why the TimeZoneInfo class should be used instead.\

\

**Follow [This Link](http://msdn.microsoft.com/en-us/library/c1f14e97(v=vs.110).aspx) to resolve your problem.**


---

Original Source: https://www.mindstick.com/forum/1705/how-to-check-a-given-date-is-dst-date-or-not-using-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
