Skip to content

Excel not recognize Date when use SaveAsByTemplate #824

@mfrigerio-rgl

Description

@mfrigerio-rgl

When save a Date with SaveAs excel recognize the Date, when do the same but with SaveAsByTemplate the Date is not recognized.

            dati.Dati.Add(new
            {
                Data = DateTime.Now
            }); ;


        // Don't recognize Data as date
        MiniExcel.SaveAsByTemplate(outFile, Properties.Settings.Default.Template, dati,);
        // Recognize Data as date 
        MiniExcel.SaveAs(outFile, dati.Dati.AsEnumerable());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions