Shovan Saha

Shovan Saha

  • NA
  • 321
  • 92.7k

Do not want to see the time in itextsharp report

Jun 2 2017 12:05 PM
C#, visual studio 2015, desktop dataentry application:
I have used the code for iTextSharp and found the output. I do not want to see PaymentDate time like "12.00.00AM". Please help me as sample code or example:
 
//Adding Header row
foreach (DataGridViewColumn column in dataGridView1.Columns)
{
PdfPCell cell = new PdfPCell(new Phrase(column.HeaderText,fontTable));
pdfTable.AddCell(cell);
}
//Adding DataRow
foreach (DataGridViewRow row in dataGridView1.Rows)
{
foreach (DataGridViewCell cell in row.Cells)
{
pdfTable.AddCell(new PdfPCell(new Phrase(cell.Value.ToString(), fontTable)) { Border = PdfPCell.BOTTOM_BORDER, Padding = 5, MinimumHeight = 30, PaddingTop = 5 });
}
}
 
Output:
 
 I do not want to see PaymentDate time "12.00.00AM". Please help me.

Answers (1)