1
Answer

Date and Time

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)