title: Convert int to time Codeigniter
body: <p>I'm new to codeigniter, I want to know that is there a way to convert integer to time before inserting into a table in codeigniter? because i have this kind of error. Error Number: 22018</p>
  
  <pre><code>[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Operand type clash: int is incompatible with time
  
  INSERT INTO ScheduleDummy (Sched_Day, Sched_StartTime, Sched_EndTime) VALUES (0, 0, 0)
  
  Filename: E:\Xampp\htdocs\Student\system\database\DB_driver.php
  
  Line Number: 331
  </code></pre>