Version

DBValue Property

Gets a database-friendly version of the date value.
Syntax
'Declaration
 
Public ReadOnly Property DBValue As Object
public object DBValue {get;}
Remarks

If the SmartDate contains an empty date, this returns DBNull. Otherwise the actual date value is returned as type DateTime.

This property is very useful when setting parameter values for an ADO.NET Command object, since it automatically stores null values into the database for empty date values.

Requirements

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