Convert string to DateTime in vb.net
VB.NET
Dim strDate As String = “21/07/2006”
Dim dtfi As New DateTimeFormatInfo() dtfi.ShortDatePattern = "dd/MM/yyyy" dtfi.DateSeparator = "/" Dim objDate As DateTime = Convert.ToDateTime(strDate, dtfi) C#
string strDate = "21/07/2006"; DateTimeFormatInfo dtfi = new DateTimeFormatInfo(); dtfi.ShortDatePattern = "dd/MM/yyyy"; dtfi.DateSeparator = "/"; DateTime objDate = Convert.ToDateTime(strDate, dtfi);
Categories: ASP.NET
It’s a pity you don’t have a donate button! I’d certainly donate to this outstanding blog!
I guess for now i’ll settle for book-marking and adding
your RSS feed to my Google account. I look forward to neew updates and will talk about this blog with my Facebook group.
Talk soon!
Thank you…
Thank you.