Solved

C# date format

Posted on 2008-10-29
2
940 Views
Last Modified: 2013-12-17
Hi,
I have to read the users regional settings using windows Application  and get the Date format either UK or US and send the date format as parameter to the stored procs either mm/dd/yyyy or dd/mm/yyyy
how can i write this function
0
Comment
Question by:dotnet0824
[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
2 Comments
 
LVL 12

Accepted Solution

by:
techExtreme earned 250 total points
ID: 22829347
Hi, go thru this link:
http://msdn.microsoft.com/en-us/library/aa325261.aspx
It deals with date and culture.

Hope it helped.
0
 
LVL 11

Expert Comment

by:Anurag Agarwal
ID: 22829384
Hi,

Try System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat

Anurag
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

635 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