title: How to create proper time formate with current time line show in JKCalendar event list using Swift?
body: <p>In my case, I am trying to integrate third party custom calendar into my application. Here, I need to change proper time <code>formate 24 hours</code> like <code>(12 AM or PM)</code> and need to show <code>current time</code> red line like a Apple Calendar. I tried Calendar kit but there is some unmatchable functionality for my scenario. So, I need to customize <code>JKCalendar</code>, How to achieve this?</p>
  
  <p><strong>Sample Code</strong></p>
  
  <p><a href="https://github.com/JoeCiou/JKCalendar" rel="nofollow noreferrer">https://github.com/JoeCiou/JKCalendar</a></p>
  
  <p><strong>Date Code</strong></p>
  
  <pre><code>extension TableViewController: UITableViewDelegate, UITableViewDataSource{
  
      func numberOfSections(in tableView: UITableView) -&gt; Int {
          return 1
      }
  
      func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return 48
      }
  
      func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          let cell = tableView.dequeueReusableCell(withIdentifier: "TableViewCell", for: indexPath) as! TableViewCell
  
          if indexPath.row % 2 == 0 &amp;&amp; indexPath.row != 0 &amp;&amp; indexPath.row != 47{
              let hour = indexPath.row / 2
              cell.timeLabel.text = (hour &lt; 10 ? "0": "") + String(hour) + ":00"
          }else{
              cell.timeLabel.text = ""
          }
          return cell
      }
  
      func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
          print(indexPath.row)
      }
  }
  </code></pre>
  
  <p><strong>Sample Image</strong></p>
  
  <p><a href="https://i.stack.imgur.com/3A3y1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3A3y1.png" alt="enter image description here"></a></p>