Date time

This blog help to refer datetime format in c#
String.Format("{0:y yy yyy yyyy}", datetime);  
String.Format("{0:M MM MMM MMMM}", datetime);

String.Format("{0:s ss}",datetime);
String.Format("{0:f ff fff ffff}", datetime);


String.Format("{0:M/d/yyyy}", datetime);
String.Format("{0:MM/dd/yyyy}", datetime);

String.Format("{0:ddd, MMM d, yyyy}", datetime);
String.Format("{0:dddd, MMMM d, yyyy}", datetime);
 
String.Format("{0:MM/dd/yy}", datetime);
String.Format("{0:d dd ddd dddd}",datetime);
 
String.Format("{0:h hh H HH}",datetime);
String.Format("{0:m mm}",datetime);

String.Format("{0:d/M/yyyy HH:mm:ss}", datetime);
String.Format("{0:d/M/yyyy HH:mm:ss}", datetime);

String.Format("{0:F FF FFF FFFF}", datetime);
String.Format("{0:t tt}", datetime);

String.Format("{0:z zz zzz}", datetime);
String.Format("{0:MM/dd/yyyy}", datetime);


Next Recommended Reading Get Current Date and Time in C#