JAMS Developer Guide
ToSqlDateTimeUTC Method


MVPSI.JAMS Namespace > Convert Class : ToSqlDateTimeUTC Method
The DateTime to be converted.
Converts a DateTime to an SqlDateTime. If the DateTime is MinValue, SqlDateTime.Null is returned. If the DateTime is not UTC, throws an exception.
Syntax
'Declaration
 
Public Shared Function ToSqlDateTimeUTC( _
   ByVal input As System.Date _
) As System.Object
'Usage
 
Dim input As System.Date
Dim value As System.Object
 
value = Convert.ToSqlDateTimeUTC(input)
public static System.object ToSqlDateTimeUTC( 
   System.DateTime input
)

Parameters

input
The DateTime to be converted.

Return Value

The SqlDateTime
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

Convert Class
Convert Members