title: Removing Seconds From FormatDateTime in VBScript
body: <p>How would I be able to extract the time in hh:mm am/pm from a date in vbscript?</p>
  
  <p>For example, with the date '06/25/19 02:10:12 PM', I would only like to show '2:10 PM'</p>
  
  <pre><code>date = CDate("06/25/19 02:10:12 PM")
  FormatDateTime(date, vbLongTime)
  </code></pre>
  
  <p>This will return 2:10:12 PM but seconds should not be shown.</p>
  
  <pre><code>date = CDate("06/25/19 02:10:12 PM")
  FormatDateTime(date, vbShortTime)
  </code></pre>
  
  <p>This will return 14:10 but this is in military time.</p>
  
  <p>I've seen functions in C# and VB.NET that will directly return the time in hh:mm am/pm but was unable to find documentation on functions that will do so in VBScript.</p>