C# Help Please - Date Formats

  • Thread starter Thread starter Yoshi
  • Start date Start date
Y

Yoshi

Is there a way to programatilly obtain a list of all the data formats using
C# code?

Thanks,

Dave
 
Yoshi said:
Is there a way to programatilly obtain a list of all the data formats using
C# code?

What do you mean by "all the data formats" exactly?
 
What I mean is... I want to obtain a list of all the available Date and Time
patterns (formats). After doing some more research, I have figured out how
to do it.

Here is the code I wrote:

DateTimeFormatInfo d = new DateTimeFormatInfo();


string[] patterns = d.GetAllDateTimePatterns();


foreach (string s in patterns)

MessageBox.Show(s.ToString());


Thanks for responding though. I appreciate the fast response.

David
 
Back
Top