Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

how to convert date format in vb.net

Posted on 2013-06-30
6
Medium Priority
?
513 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 668 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 668 total points
ID: 39288699
Or
TextBox1.Text = myDate.ToString("dd-MMM-yy")
0
 
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
0
 

Author Closing Comment

by:searchsanjaysharma
ID: 39336636
tx
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

604 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