ice.NET SDK API
ice.NET SDK API
ice.NET SDK API
PDTec.IceNet.Sdk.Utils
DateTimeUtils Class
DateTimeUtils Methods
AsUtc Method
AsUtcWithSqlMinValue Method
ParseLocal Method
ParseUtc Method
RenderLocal Method
SerializeUtc Method
ToLocalTime Method
ToUtcTime Method
TryParseUtc Method
DateTimeUtils
AsUtc Method
Returns a timestamp as an UTC value.
Namespace:
PDTec.IceNet.Sdk.Utils
Assembly:
PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 6.0.0.0 (6.0.6225.27214)
Syntax
C#
Copy
public
static
DateTime
AsUtc
(
this
DateTime
dt
)
Parameters
dt
Type:
System
DateTime
The timestamp.
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)
.
See Also
Reference
DateTimeUtils Class
PDTec.IceNet.Sdk.Utils Namespace
Copyright © PDTec AG. All rights reserved.