ExtensionMethodsToUniversalDate Method |
Converts the date in the specified datetime directly to a DateTime with Kind set to Utc. The y/m/d values in toConvert match the ones in the returned struct, the
Kind is only converted and a time fraction is ignored in the toConvert value.
Namespace:
SD.LLBLGen.Pro.Core
Assembly:
SD.LLBLGen.Pro.Core (in SD.LLBLGen.Pro.Core.dll) Version: 5.3.0.0 (5.3.0)
Syntax public static DateTime ToUniversalDate(
this DateTime toConvert
)
<ExtensionAttribute>
Public Shared Function ToUniversalDate (
toConvert As DateTime
) As DateTime
Parameters
- toConvert
- Type: SystemDateTime
To convert.
Return Value
Type:
DateTimeUsage 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