Click or drag to resize
FormatHelperRoundMilliseconds Method
Rounds the milliseconds of a DateTime instance.

Namespace: Telerik.Windows.Documents.Spreadsheet.Formatting
Assembly: Telerik.Windows.Documents.Spreadsheet (in Telerik.Windows.Documents.Spreadsheet.dll) Version: 2017.3.1010.40 (2017.3.1010.40)
public static DateTime RoundMilliseconds(
	this DateTime dateTimeValue,
	int precision


Type: SystemDateTime
The DateTime value.
Type: SystemInt32
The precision.

Return Value

Type: DateTime
The DateTime instance with rounded milliseconds.

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).
See Also