User1535942433 posted
Hi jagjit saini,
I want int column to display to 2 decimal places
Date Column in dd/MM/yyyy format
Convert int to decimal:
int i= 1;
decimal d = Convert.ToDecimal(i);
decimal dc= Math.Round(d, 2);
Convert date to date format dd/mm/yyyy:
DateTime date = new DateTime(2020,12,31);
string formatted = date.ToString("dd/M/yyyy");
Best regards,
Yijing Sun