C# date format

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
dotnet0824Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
techExtremeConnect With a Mentor Commented:
Hi, go thru this link:
http://msdn.microsoft.com/en-us/library/aa325261.aspx
It deals with date and culture.

Hope it helped.
0
 
Anurag AgarwalPython DeveloperCommented:
Hi,

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

Anurag
0
All Courses

From novice to tech pro — start learning today.