Solved

how to convert date format in vb.net

Posted on 2013-06-30
6
504 Views
Last Modified: 2013-07-23
How to display date format in vb.net in dd-MMM-yy format  in textbox.
0
Comment
Question by:searchsanjaysharma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 27

Accepted Solution

by:
MacroShadow earned 167 total points
ID: 39288583
Dim myDate As Date = Now()

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

Open in new window

0
 
LVL 28

Assisted Solution

by:Ark
Ark earned 167 total points
ID: 39288699
Or
TextBox1.Text = myDate.ToString("dd-MMM-yy")
0
 
LVL 10

Assisted Solution

by:Monica P
Monica P earned 166 total points
ID: 39289561
I hope above way of formating will help you..

If u need more information : http://www.dotnetperls.com/datetime-format-vbnet
0
 

Author Closing Comment

by:searchsanjaysharma
ID: 39336636
tx
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question