📜  字符串时间 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:52.553000             🧑  作者: Mango

代码示例1
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"))