Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Using data format all the way

Posted on 2011-10-31
3
Medium Priority
?
318 Views
Last Modified: 2013-12-16
Dear

I want my application to use one date format regardless the system format, how can achieve this?

0
Comment
Question by:Abdurahman Almatrodi
  • 2
3 Comments
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 37059267
Pass your desired format to the ToString() method:
http://msdn.microsoft.com/en-us/library/zdtaw1bw.aspx

Here are all the custom formats you can use:
http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx
0
 
LVL 1

Author Comment

by:Abdurahman Almatrodi
ID: 37059360
Dear

I am looking for a way to give a command once at startup of the application as
SET DATEFORMAT DD/MM/YYYY

not to deal with every value alone
0
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 2000 total points
ID: 37059403
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
Screencast - Getting to Know the Pipeline
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

810 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