Hello Syncfusion support,
I am attempting to convert a .NET 7.0 C# Datetime with hours to an Excel DateTime with
========================================
- NuGet Client Project:
- Syncfusion.XlsIO.Net.Core
- Blazor WASM Core Hosted .NET 7.0
========================================
C#:
using Syncfusion.XlsIO;
if (jobScan.ScanDate != null)
{
sheet1.Range[1, 1].DateTime = jobScan.ScanDate ?? new DateTime();
}
sheet1.Range[1, 1].NumberFormat = "mm/dd/yyyy hh:mm";
However, it still displays as a numerical format when the Excel file is opened. Additionally, once opened if you set the Number Format on the target column it displays the date as intended.
Please advise!
Thanks, Mike