Click or drag to resize

DateTimeUtilsAsUtcWithSqlMinValue Method

Returns a timestamp as an UTC value and considers Microsoft SQL Server minimum values.

Namespace:  PDTec.IceNet.Sdk.Utils
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public static DateTime AsUtcWithSqlMinValue(
	this DateTime dt
)

Parameters

dt
Type: SystemDateTime
The timestamp retrieved from SQL Server.

Return Value

Type: DateTime
The timestamp as UTC value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Microsoft SQL Server cannot handle timestamps below 1.1.1753.
See Also