Date and time format for mysql in vb.net

date time format 12hour

Dim DATE1 As String = Format(System.DateTime.Now, "yyyy-MM-dd hh:mm:ss tt")

date time format 24hour

Dim DATE1 As String = Format(System.DateTime.Now, "yyyy-MM-dd HH:mm:ss")


Other types

No comments: