SpreadsheetGear 2010
NumberToDateTime Method
See Also  Send Feedback
SpreadsheetGear Namespace > IWorkbook Interface : NumberToDateTime Method

number
The date-time serial number to convert.
Converts the specified date-time serial number to an instance of System.DateTime.

Syntax

Visual Basic (Declaration) 
Function NumberToDateTime( _
   ByVal number As Double _
) As Date
C# 
DateTime NumberToDateTime( 
   double number
)

Parameters

number
The date-time serial number to convert.

Return Value

An instance of System.DateTime initialized with the converted date-time serial number.

Remarks

Dates and times are stored in worksheet cells as a date-time serial number.

Requirements

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

See Also

Copyright © 2003-2010 SpreadsheetGear LLC. All Rights Reserved.Help Powered by Innovasys   
SpreadsheetGear is a registered trademark of SpreadsheetGear LLC.
Microsoft, Microsoft Excel and Visual Studio are trademarks or registered trademarks of Microsoft Corporation.