JAMS Developer Guide
ConvertKindToUniversal Method


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

Parameters

oldValue
The DateTime which should be converted

Return Value

The new DateTime converted to UTC 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