Click or drag to resize
ConvertToInt64 Method (DateTime)
Calling this method always throws InvalidCastException.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static long ToInt64(
	DateTime value
)

Parameters

value
Type: SystemDateTime
The date and time value to convert.

Return Value

Type: Int64
This conversion is not supported. No value is returned.
Exceptions
ExceptionCondition
InvalidCastExceptionThis conversion is not supported.
See Also