Click or drag to resize
weroSoft AG, Software
RuntimeExtensionsConvertToUtc Method (NullableDateTime, DateTime)
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Converts a date tome from view model to model.

Namespace:  WeroSoft.Runtime
Assembly:  WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 3.0 Pre-Release
Syntax
C#
public static DateTime ConvertToUtc(
	this DateTime? dateTime,
	DateTime defaultValue
)

Parameters

dateTime
Type: SystemNullableDateTime
Date time to convert.
defaultValue
Type: SystemDateTime
Using default value.

Return Value

Type: DateTime
Returns converted date time or default from parameter.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type NullableDateTime. 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
Converts a date time object to UTC time. If the date time object is null, it will return the default value.
See Also