Remove time in itextsharp pdf document
08.04.2018 12:44:21 datetime now
08.04.2018 I need..
-
- foreach (DataGridViewRow row in mp_faktura_listaDataGridView.Rows)
- {
-
- foreach (DataGridViewCell cell in row.Cells)
- {
-
- PdfPCell cell2 = new PdfPCell(new Phrase(cell.Value.ToString(), calibri));
-
- pdfTable.AddCell(cell2);
- }
- }
I try this
-
- foreach (DataGridViewRow row in mp_faktura_listaDataGridView.Rows)
- {
-
- foreach (DataGridViewCell cell in row.Cells)
- {
- string dateVal = cell.Value.ToString().Split(',')[0];
- PdfPCell cell2 = new PdfPCell(new Phrase(dateVal, calibri));
-
- }
- }
But dont work