'Declaration
Function DateTimeToNumber( _
ByVal As System.Date _
) As System.Double
'Usage
Dim instance As IWorkbook
Dim dateTime As System.Date
Dim value As System.Double
value = instance.DateTimeToNumber(dateTime)
System.double DateTimeToNumber(
System.DateTime
)
Parameters
- dateTime
- The System.DateTime instance to convert.
Return Value
A date-time serial number appropriate for storage in a worksheet cell.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2