Date time remove time from pdf report need date an payment to be 01.01.2019 without time
Hide Copy Code
if (c == 2)
my report is
date payment
01.01.2019 01.01.2019 00:00:00
I try to add this
Hide Copy Code
if (c == 2) && (c == 3)
my report is
date payment
01.01.2019 00:00:00 01.01.2019 00:00:00
I try to add d (like on example code)
if (c == 2) && (d == 3)
my report is
date payment
01.01.2019 00:00:00 01.01.2019 00:00:00 Some help?
//Adding DataRow
foreach (DataGridViewRow row in AnalitickaKarticaPartneraDataGridView.Rows)
{
int c = 0;
int d = 0;
foreach (DataGridViewCell cell in row.Cells)
{
if (c == 2 && d == 3)
{
PdfPCell cell2 = new PdfPCell(new Phrase(cell.Value.ToString().Split(' ')[0], calibri));
pdfTable.AddCell(cell2);
}
else
{
PdfPCell cell2 = new PdfPCell(new Phrase(cell.Value.ToString(), calibri));
pdfTable.AddCell(cell2);
}
c++;
d++;
}
}