Solved

C# date format

Posted on 2008-10-29
2
933 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:anuragal
ID: 22829384
Hi,

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

Anurag
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 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

19 Experts available now in Live!

Get 1:1 Help Now