time = PMilTime(timeinput)
Example Usage:
ASP Source Code:<% response.write PMilTime("1:15 pm") ' returns 13:15 response.write PMilTime("1:15") ' returns 01:15 response.write PMilTime("6:32 pm") ' returns 18:32 response.write PMilTime("1:01") ' returns 01:01 %>
<% Private Function PMilTime(byVal dtime) dim hr,mn hr = hour(dtime) : mn = minute(dtime) if len(hr) = 1 then hr = 0 & hr if len(mn) = 1 then mn = 0 & mn PMilTime = hr & ":" & mn End Function %>