I am using sql to LINQ.
I have a date field in database table in mm-dd-yyyy format.
When i want to display, its displaying with time format too, but i dont have time in `date` column
Below is the code
` select new { du.DocumentUploadsID, name = es.FirstName + ' ' + es.LastName, rDate = DateTime.Parse(du.Date).ToString("MM-dd-yyyy"), du.FileType, du.DocumentPath, es.UserID };`
I tried
rDate = DateTime.Parse(du.Date).ToString("MM-dd-yyyy");
rDate = du.Date.ToString("MM-dd-yyyy");
but not happens.