Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Convert.ToInt64 Method (DateTime)

.NET Framework 1.1

Calling this method always throws InvalidCastException.

[Visual Basic]
Overloads Public Shared Function ToInt64( _
   ByVal value As DateTime _
) As Long
[C#]
public static long ToInt64(
 DateTime value
);
[C++]
public: static __int64 ToInt64(
 DateTime value
);
[JScript]
public static function ToInt64(
   value : DateTime
) : long;

Parameters

value
A DateTime.

Return Value

This conversion is not supported. No value is returned.

Exceptions

Exception Type Condition
InvalidCastException This conversion is not supported.

Remarks

This method is reserved for future use.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Convert Class | Convert Members | System Namespace | Convert.ToInt64 Overload List

Show:
© 2015 Microsoft