Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: handle null date

$
0
0
Hello, when I export a datatable to excel if a date columns value is null then created excel file displays 1/0/1900 as the null date value.

How can I ensure if the date value is null to not show 1/0/1900 but display nothing in that cell?

Dim DS As New DataSet
        Dim DT As DataTable
        DS = ConvertToDataSet(MyData)
        DT = DS.Tables(0)

        Dim wb As New XLWorkbook

        wb.Worksheets.Add(DT)

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>