Convert.ToDecimal Method (DateTime)

July 28, 2014

Calling this method always throws InvalidCastException.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static decimal ToDecimal(
	DateTime value
)

Parameters

value
Type: System.DateTime
A DateTime.

Return Value

Type: System.Decimal
This conversion is not supported. No value is returned.

ExceptionCondition
InvalidCastException

This conversion is not supported.

This method is reserved for future use.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft