In my C# Data Access Layer…I am retrieving a dataset from Excel …and there is a decimal excel field which returns date in the format : 20090701. I need this to be converted to C# DateTime. What is the best way to do it?
In my C# Data Access Layer…I am retrieving a dataset from Excel …and there
Share
The
ParseExactmethod allows you to specify the format string for the date/time you are converting. In your case: a four digit year, then two digit month, then two digit day of month.