JAMS Developer Guide
ToSqlDateTime Method


MVPSI.JAMS Namespace > Convert Class : ToSqlDateTime Method
The DateTime to be converted.
Converts a DateTime to an SqlDateTime. If the DateTime is MinValue, SqlDateTime.Null is returned.
Syntax
'Declaration
 
Public Shared Function ToSqlDateTime( _
   ByVal input As System.Date _
) As System.Object
'Usage
 
Dim input As System.Date
Dim value As System.Object
 
value = Convert.ToSqlDateTime(input)
public static System.object ToSqlDateTime( 
   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