Solved

Show DateTime in Current FOrmat

Posted on 2009-05-08
3
247 Views
Last Modified: 2012-05-06
Hello

I have a Datetime and I want to display it in that format which the current user system is using.
and I have a datetime but I only want to show the date, not the time...

How can I do that?

Thanks

Sven
0
Comment
Question by:Ruttensoft
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
JackOfPH earned 500 total points
ID: 24334220
This will do the work...
YourDateTimeVariable.ToShortDateString
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 24334224
or you can also use

YourDateTimeVariable.ToLongDateString
0
 

Author Closing Comment

by:Ruttensoft
ID: 31579353
Thanks........ too easy :-)
0

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.

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

Suggested Solutions

Title # Comments Views Activity
How to use odbc in vb to connect to ms sql 14 63
VB.NET 1 28
DataGridView / get bound table name? 8 28
how to hit button in form and close application from main() 4 22
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

821 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