471,073 Members | 1,286 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 software developers and data experts.

Format(Date, "mmddyy") in VB.NET

How do you do Format(Date, "mmddyy") in VB.NET ?
Thank you
Jul 14 '06 #1
2 78423
fniles,

You can still use the Format function, or you can use the date variable's
ToString method:

Dim myDate As Date = DateTime.Now

MsgBox(Format(myDate, "MMddyy"))
MsgBox(myDate.ToString("MMddyy"))

Kerry Moorman
"fniles" wrote:
How do you do Format(Date, "mmddyy") in VB.NET ?
Thank you
Jul 14 '06 #2
"fniles" <fn****@pfmail.comschrieb:
How do you do Format(Date, "mmddyy") in VB.NET ?
'MsgBox(Format(Date, "MMddyy"))'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Jul 14 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.