AllExperts > Experts 
Search      

VB.NET

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB.NET Answers
Question Library

Ask a question about VB.NET
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Syed Adeel Rizvi
Expertise
I can answers questions regarding web based and desktop based programming in VB.Net. Which can include XML, Custom Controls + Computer Hardware and Windows Turboshooting...etc. More Skills : 1 . PHP - > All Type Of CMS e.g. (Joomla,Drupul,PHPNuke...etc) 2 . ASP 3 . ASP.Net 4 . CMS 5 . MySql 6 . SQl Server 2000 & 2005 7 . Ms Access 8 . Web Designing 9 . Networking Turboshooting 10 . Windows Turboshooting 11 . Hardware Turboshooting All Type Of Work Related To IT I also Do Work as a Freelance as Application & Web Developer & Designer

Experience
i have 3 years work experience in software house and 4 years work experience for computer hardware and Networking..

Organizations
110 Solutions

Education/Credentials
Bsc (Honors)

 
   

You are here:  Experts > Computing/Technology > Basic > VB.NET > Formating date in VB.NET

Topic: VB.NET



Expert: Syed Adeel Rizvi
Date: 5/1/2007
Subject: Formating date in VB.NET

Question
QUESTION: I am writing a VB.NET application, I try to format date data type, so I have written the following code:

Dim departDate As Date
Dim d As String = Format(departDate, "05/05/2007")

But It doesn't work for me, could please get some help as soon as possible. Thanks

ANSWER: hello sir

plz try

Dim departDate As Date
Dim d As String = Format(departDate, "DD/MM/YYY")

if still not working plz mail me at syedadeel2@gmail.com

---------- FOLLOW-UP ----------

QUESTION: Formating date in VB.NET
Question   I am writing a VB.NET application, I try to format date data type, so I have written the following code:

Dim departDate As Date
Dim d As String = Format(departDate, "DD/MM/YYYY")

But It doesn't work for me, could I please get some help as soon as possible. Thanks  

Answer
hello sir

try this simple after this u will get your answer

     Dim departDate As Date
       Dim d As String = Format(Today, "MM-dd-yyy")

' this Today Show The Current Date So if u want your format you can change the '-' to '/' remember MM dd yyy just like this ok
if problem then plz mail me at syedadeel2@gmail.com


Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.