Home / API Reference / StockSharp.Reporting FormatExtensions StockSharp.Reporting Format extensions. Methods Format(TimeSpan?) : string To format the TimeSpan in String. time TimeSpan value. Returns: String. Format(TimeSpan) : string To format the TimeSpan in String. time TimeSpan value. Returns: String. Format(DateTime) : string To format the DateTime in String. time DateTime value. Returns: String.