rus tan

rus tan

  • 1.8k
  • 52
  • 655

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)