How to convert a Date to a formatted string in VB.net?
Posted by jineesh uvantavida on Friday, November 10, 2017 Under: vb.net
In : vb.net
Dim timeFormat As String = "yyyy-MM-dd HH:mm:ss"
objBL.date = Convert.ToDateTime(txtDate.Value).ToString(timeFormat)This can be used globally to convert so many date field in a form.
In : vb.net
Translate This Page
Make a free website with Yola