C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System
Convert Class
Convert Methods
ToInt32 Method
ToInt32 Method (Boolean)
ToInt32 Method (Byte)
ToInt32 Method (Char)
ToInt32 Method (DateTime)
ToInt32 Method (Decimal)
ToInt32 Method (Double)
ToInt32 Method (Int16)
ToInt32 Method (Int32)
ToInt32 Method (Int64)
ToInt32 Method (Object)
ToInt32 Method (SByte)
ToInt32 Method (Single)
ToInt32 Method (String)
ToInt32 Method (UInt16)
ToInt32 Method (UInt32)
ToInt32 Method (UInt64)
ToInt32 Method (Object, IFormatProvider)
ToInt32 Method (String, IFormatProvider)
ToInt32 Method (String, Int32)
Convert
ToInt32 Method (DateTime)
Calling this method always throws
InvalidCastException
.
Namespace:
System
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
static
int
ToInt32
(
DateTime
value
)
Parameters
value
Type:
System
DateTime
The date and time value to convert.
Return Value
Type:
Int32
This conversion is not supported. No value is returned.
Exceptions
Exception
Condition
InvalidCastException
This conversion is not supported.
See Also
Reference
Convert Class
ToInt32 Overload
System Namespace