Report time as DST if it is either ambiguous or DST
Module Example
Public Sub Main()
Dim unclearDate As Date = #11/4/2010 1:30AM#
If TimeZoneInfo.Local.IsAmbiguousTime(unclearDate) OrElse _
TimeZoneInfo.Local.IsDaylightSavingTime(unclearDate) Then
Console.WriteLine("{0} may be daylight saving time in {1}.", _
unclearDate, TimeZoneInfo.Local.DisplayName)
End If
End Sub
End Module
Related examples in the same category