dateFrom = Convert.ToDateTime(dr["DateFrom"].ToString());
DateTime
string formattedDate = Convert.ToDateTime(dr["DateForm"].ToString()).ToString("dd/MM/yyyy");
Date
DataType
Date and Time
dateForm = Convert.ToDateTime(dr["DateForm"]).Date;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)