akshay rasalakar

akshay rasalakar

  • NA
  • 128
  • 9.4k

Date and Time

Feb 12 2015 10:27 PM
I want to save start  and  end time 
 
DateTime dt = DateTime.Now;
        DateTime dt1 = DateTime.Now;
        st = "insert into tbl_time(time_in,time_out) values('" + dt.ToString("hh:mm:ss") + "','" + dt1 + "')";
        int x = db.ExeQuery(st);
        if (x > 0)
        {
            Response.Write("Saved");
        }
        else
        {
            Response.Write("NOt Savd");
        }
    }

Answers (1)