how to convert date format in vb.net

Posted on 2013-06-30
Medium Priority
Last Modified: 2013-07-23
How to display date format in vb.net in dd-MMM-yy format  in textbox.
Question by:searchsanjaysharma
LVL 28

Accepted Solution

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

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

Open in new window

LVL 28

Assisted Solution

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

Assisted Solution

by:Monica P
Monica P earned 664 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

Author Closing Comment

ID: 39336636

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…
Watch the video to know the simple way to remove or recover or reset lost or forgotten passwords of Outlook PST file. With Kernel Outlook Password Recovery tool such operation is very easy to perform. It is a freeware with limitation to use with 500…

624 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