JAMS Developer Guide
ConvertKindToLocal Method


MVPSI.JAMS Namespace > DateTimeExtensions Class : ConvertKindToLocal Method
The DateTime which should be converted
Acts like ToLocalTime, but converting DateTime.MinValue and DateTime.MaxValue won't cause timezone shifts.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function ConvertKindToLocal( _
   ByVal oldValue As System.Date _
) As System.Date
'Usage
 
Dim oldValue As System.Date
Dim value As System.Date
 
value = DateTimeExtensions.ConvertKindToLocal(oldValue)
[System.Runtime.CompilerServices.Extension()]
public static System.DateTime ConvertKindToLocal( 
   System.DateTime oldValue
)

Parameters

oldValue
The DateTime which should be converted

Return Value

The new DateTime converted to local time
Requirements

Target Platforms: Windows 7, 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

Reference

DateTimeExtensions Class
DateTimeExtensions Members