ConvertValueToTime Method

Converts a value to hours without dates using a DateTime type.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static DateTime? ValueToTime(
	Object value,
	bool includeSeconds = false,
	bool includeMilliseconds = false
)

Parameters

value  Object
Value to convert.
includeSeconds  Boolean  (Optional)
Indicates whether seconds should be included.
includeMilliseconds  Boolean  (Optional)
Indicates whether milliseconds should be included.

Return Value

NullableDateTime
DateTime with the date time value.

if the value cannot be converted.

See Also