Shovan Saha

Shovan Saha

  • NA
  • 321
  • 92.7k

C#, iTextsharp (remove time from date)

Jun 2 2017 1:34 AM
I have C# code, visual studio 2015 for desktop dataentry application. When i use pdf report PaymentDate column shows "01-June-2017, 12.00AM". I want to remove "12.00AM". How? Please sample code or example.
 
My code is:
//Adding DataRow

foreach (DataGridViewRow row in dataGridView1.Rows)
{
foreach (DataGridViewCell cell in row.Cells)
{

 pdfTable.AddCell(new Phrase(cell.Value.ToString(), fontTable));

}
}

Answers (4)