How would I be able to extract the time in hh:mm am/pm from a date in vbscript?
For example, with the date '06/25/19 02:10:12 PM', I would only like to show '2:10 PM'
date = CDate("06/25/19 02:10:12 PM")
FormatDateTime(date, vbLongTime)
This will return 2:10:12 PM but seconds should not be shown.
date = CDate("06/25/19 02:10:12 PM")
FormatDateTime(date, vbShortTime)
This will return 14:10 but this is in military time.
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.