Archive for category C#

Active Directory Tasks in C#

This is a great collection of codesamples regarding C# and Active Directory


Leave a comment

C# DateTime.ToString patterns

I often need to use there DateTime.ToString patterns and can never remember where I found an easy way of getting a complete overview with a lot of examples.

You can find a great overview at Geekzilla
The Official one is here: MSDN

You use the code in C# like so

DateTime dt = DateTime.Now;
dt.ToString(“MM/dd/yyyy”)                           // Will show: 08/22/2006
dt.ToString(“MM/dd/yyyy HH:mm:ss”)     // Will show: 08/22/2006 06:30:07

, ,

Leave a comment