Friday, October 23, 2009

Change Format of Date in VB.NET

Dim departDate As Date
departDate = Date.Now
Dim d As String = Format(departDate, "dd/MM/yyyy")
MsgBox(d)
'Above Example shows how to convert date format according to our requirements.

Share This!


No comments:

Powered By Blogger · Designed By Seo Blogger Templates