| BitConverter: ToDate | 
Converts an array of bytes to a Date value.
Public Function ToDate( ByRef Value ( ) As Byte, ByVal StartIndex As Long ) As Date
The date type is stored as ticks in a 64-bit signed integer. The Visual Basic Date type cannot represent the entire range storable in 64-bits.
| Exception | Condition | 
|---|---|
| ArgumentException | StartIndex is greater than or equal to the length of Value minus 7, and is less than or equal to the length of Value minus 1. | 
| ArgumentNullException | Value is uninitialized. | 
| ArgumentOutOfRangeException | StartIndex is less than zero or greater than the length of Value minus 1. | 
| OverflowException | The 64-bit value is outside the valid range of the Visual Basic Date type. |