ConvertValueToTime Method
Converts a value to hours without dates using a DateTime type.
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static DateTime? ValueToTime(
Object value,
bool includeSeconds = false,
bool includeMilliseconds = false
)
Public Shared Function ValueToTime (
value As Object,
Optional includeSeconds As Boolean = false,
Optional includeMilliseconds As Boolean = false
) As DateTime?
- value Object
- Value to convert.
- includeSeconds Boolean (Optional)
- Indicates whether seconds should be included.
- includeMilliseconds Boolean (Optional)
- Indicates whether milliseconds should be included.
NullableDateTimeDateTime with the date time value.
if the value cannot be converted.