background preloader

Reference

Facebook Twitter

String Format for DateTime. This example shows how to format DateTime using String.Format method.

String Format for DateTime

All formatting can be done also using DateTime.ToString method. Custom DateTime Formatting There are following custom format specifiers y (year), M (month), d (day), h (hour 12), H (hour 24), m (minute), s (second), f (second fraction), F (second fraction, trailing zeroes are trimmed), t (P.M or A.M) and z (time zone). Following examples demonstrate how are the format specifiers rewritten to the output. You can use also date separator / (slash) and time sepatator : (colon). RGB Hex Chart. Ascii Table - ASCII character codes and html, octal, hex and decimal chart conversion.