Time To String

[Solved] Time To String | Elixir - Code Explorer | yomemimo.com
Question : time to string

Answered by : zealous-zebra-7bcbwvjhcn6b

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"))

Source : https://stackoverflow.com/questions/28914221/vb-net-how-to-convert-a-string-into-time | Last Update : Mon, 28 Jun 21

Answers related to time to string

Code Explorer Popular Question For Elixir