in .NET Framework

DateTime.ToString()

Here is a link that is useful as a reference for DateTime.ToString patterns

References:

http://www.geekzilla.co.uk/View00FF7904-B510-468C-A2C8-F859AA20581F.htm