I think I have a function that'll throw up a messagebox if the current day is the Saturday before the Daylight Saving Time change for the US. The days it changes is the 2nd Sunday in March and the 1st Sunday in November, the time doesn't matter in this app, just the date.
Do I have it right?
VB.NET:
Private Function CheckDST() As Boolean
With DateTime.Today
Select Case .Month 'Month is one based
Case 3I 'March
If .DayOfWeek = DayOfWeek.Saturday AndAlso .Day >= 7I AndAlso .Day <= 13I Then
MessageBox.Show("Spring")
Return True
Else
Return False
End If
Case 11I 'November
If .DayOfWeek = DayOfWeek.Saturday AndAlso .Day <= 6I Then 'Day is one based
MessageBox.Show("Fall")
Return True
Else
Return False
End If
Case Else : Return False
End Select
End With
End Function