rus tan

rus tan

  • NA
  • 52
  • 11.1k

instead of now i want the details keyed in the form

Oct 24 2019 9:22 PM
string insert =
@"INSERT INTO Leave( LeavesTaken,Days,Reason,StartDate,EndDate,Status,UserId, Ishalfday) VALUES
( '{0}', '{1}', '{2}','" + DateTime.Now.ToString("yyyy-MM-dd") + "','" + DateTime.Now.ToString("yyyy-MM-dd") + "', 0,'{3}',0)";
 how  do i change instead  of now simply just convert it to string

Answers (1)