Remove time in itextsharp pdf document
08.04.2018 12:44:21 datetime now
08.04.2018 I need..
- //Adding DataRow
- 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);
- }
- }
- //Adding DataRow
- 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));
- }
- }


Amit GuptaRank #190 · 12.8K reputationPosted Apr 17, 2018, 2:02 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Apr 17, 2018, 9:02 PM EDT