title: Print C# TimeSpan value in javascript
body: <p>Javascript</p>
  
  <pre><code> var row = "";
    jQuery.each(response.content, function (index, item) {
       row += "&lt;tr &gt;&lt;td&gt;" + item.lectureStartTime + " &lt;/td&gt; &lt;/tr&gt;";
         });
    $("#tbldialogfacultyclash").html(row);
  </code></pre>
  
  <p>Model Class</p>
  
  <pre><code>     [Key]
      [Column(Order = 9, TypeName = "time")]
      [Required(ErrorMessage = "Required!")]
      [DisplayName("Lecture Start Time")]
      [DataType(DataType.Time)]
      [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:HH:mm tt}")]
      public TimeSpan lectureStartTime { get; set; }
      [Key]
      [Column(Order = 10, TypeName = "time")]
      [Required(ErrorMessage = "Required!")]
      [DisplayName("Lecture End Time")]
      [DataType(DataType.Time)]
      [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:HH:mm tt}")]
      public TimeSpan lectureEndTime { get; set; }
  
      [Column(Order = 11)]
      [Required(ErrorMessage = "Required!")]
      [DisplayName("lecture Total Duration")]
      public long lectureTotalDuration { get; set; }
  </code></pre>
  
  <p><strong>Image showed Database data and structure</strong></p>
  
  <p><a href="https://i.stack.imgur.com/ds4i0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ds4i0.png" alt="enter image description here"></a></p>
  
  <p>When I tried to Print <code>lectureStartTime</code>  Using javascript it showed me like  <code>[object Object]</code>  how to print this <code>C# TimeSpan Object</code><br>
  I want to print like <code>10:00 AM</code> Format</p>