Datetime to date conversion issue

  • Thread starter Thread starter czarvk
  • Start date Start date
C

czarvk

Guest
Hello, I am trying to convert datetime column to date format from a data row. But I have been getting "No overload for method ToString takes 1 argument" error.

This is the code. Below is the screenshot. How do I convert the data that is dr[0] to "dd/m/YYYY" format. PLease help. Thanks in advance.

defect.Production_Date = dr[0].ToString("dd/m/YYYY");



1613233.jpg


svk

Continue reading...
 
Back
Top