📅  最后修改于: 2022-03-11 14:58:52.553000             🧑  作者: Mango
Dim strTime As String = "3:00 PM"
' Convert to datetime
Dim dtTime As DateTime = Convert.ToDateTime(strTime)
' Display in 24hr format
Response.Write(dtTime.ToString("HH:mm"))