Version

CreateFloatingDateTransitionTime Method

A static menthod that creates and returns a transition time that occurs on a different dateTime every year based on day of week and a relative week number.
Syntax
'Declaration
 
Public Shared Function CreateFloatingDateTransitionTime( _
   ByVal week As Byte, _
   ByVal month As Byte, _
   ByVal dayOfWeek As DayOfWeek, _
   ByVal timeOfDay As Date _
) As TimeZoneInfoProvider.TransitionTime
public static TimeZoneInfoProvider.TransitionTime CreateFloatingDateTransitionTime( 
   byte week,
   byte month,
   DayOfWeek dayOfWeek,
   DateTime timeOfDay
)

Parameters

week
A number between 1 and 5
month
A number between 1 and 12
dayOfWeek
An enumeration that identifies a specific day from 'Sunday' thru 'Saturday'.
timeOfDay
The time that the transition takes place.

Return Value

The newly created instance of a TimeZoneInfoProvider.TransitionTime
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also