Click or drag to resize
CellValueFactoryToCellValue Method (DateTime)
Produces an ICellValue instance.

Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet (in Telerik.Windows.Documents.Spreadsheet.dll) Version: 2017.3.1010.40 (2017.3.1010.40)
public static ICellValue ToCellValue(
	this DateTime value


Type: SystemDateTime
The value.

Return Value

Type: ICellValue
The ICellValue instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Please note the date is stored as number value. If a date number format is not set to the cell the value will be shown as number.
See Also