Solved

Show DateTime in Current FOrmat

Posted on 2009-05-08
3
219 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
Comment Utility
This will do the work...
YourDateTimeVariable.ToShortDateString
0
 
LVL 15

Expert Comment

by:JackOfPH
Comment Utility
or you can also use

YourDateTimeVariable.ToLongDateString
0
 

Author Closing Comment

by:Ruttensoft
Comment Utility
Thanks........ too easy :-)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now