title: How to set time to be 11:59PM always and disable the time picker using jquery and Angular8
body: <p>Hi i have used Angular8+ and Jquery to bind calendar into the input field.But irrespective of time zone, i always want to show time to be 11:59PM and disable the Time Picker and set that to 11:59PM by default.</p>
  <p>Can anyone help me how to make this work.</p>
  <p>TS:</p>
  <pre><code>$(&quot;.onlyDate&quot;).datetimepicker({ format: &quot;L&quot; });
        let dat = null;
         $(&quot;.onlyDateTime&quot;)
        .datetimepicker()
        .on(&quot;dp.hide&quot;, e =&gt; {
          const date = e.date;
           let dat = e.date.format(&quot;L&quot;);
          this.Restrictions[this.selectedIndex].datetime = dat.format(&quot;MM/DD/YYYY 11:59 A&quot;);
        });
  </code></pre>
  <p><a href="https://stackblitz.com/edit/github-ck3u8u-jb6ipf?file=src%2Fapp%2Fuser-table%2Fuser-table.component.ts" rel="nofollow noreferrer">DEMO</a></p>