how to convert date format in vb.net

How to display date format in vb.net in dd-MMM-yy format  in textbox.
searchsanjaysharmaAsked:
Who is Participating?
 
MacroShadowConnect With a Mentor Commented:
Dim myDate As Date = Now()

TextBox1.Text = Format(myDate, "dd-MMM-yy")

Open in new window

0
 
ArkConnect With a Mentor Commented:
Or
TextBox1.Text = myDate.ToString("dd-MMM-yy")
0
 
Monica PConnect With a Mentor Software DeveloperCommented:
I hope above way of formating will help you..

If u need more information : http://www.dotnetperls.com/datetime-format-vbnet
0
 
searchsanjaysharmaAuthor Commented:
tx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.