Solved

C# date format

Posted on 2008-10-29
2
938 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
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

713 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