paulyoder / LinqToExcel

Use LINQ to retrieve data from spreadsheets and csv files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Date string is converted to DateTime

SoundarRBT opened this issue · comments

We have column name 'Date' and it's value as '31/12/2019', this value is automatically converted DateTime to '31/12/2019 12:00:00 AM' which we don't want to. We want to treat it as plain string. not as DateTime.
Please help to get us any solution.

Between thanks for the great library!

may be you need to create string propertie as DateTime with this column in attributes?
Like that
[ExcelColumn("ThisDateColumn")]
public string ThatColumnWithDateAsString { get; set; }