Hello,
I want to set TimeSpan value to cell. This value should be displayed in the specified format - “h:mm:ss”. But it does not work - as result, I see text “hh:mm:ss” in the cell. If I focus the cell and then I move focus to another cell, value format becomes correct. Please see my code snippet:
var timeSpan = TimeSpan.FromMinutes(1);
var cell = _sheet.Cells.CheckCell(0, 3);
cell.Value = timeSpan;
var style = cell.GetStyle();
style.SetCustom(“h:mm:ss”, true);
cell.SetStyle(style);
Now it does not work. Please help me - how to display the correct time span format? Thank you.