Format specifiers

The format specifiers required as parameters by some functions must comply with the rules of the .NET Framework.

Examples

Format specifiers Result
dd Day, two numeric digits
ddd Name of the weekday (abbreviated)
dddd Name of the weekday (full)
MM Month, two numeric digits
MMM Name of the month (abbreviated)
MMMM Name of the month (full)
yy Year, two numeric digits
yyyy Year, four numeric digits
hh Hours
mm Minutes
ss Seconds

All .NET Framework date and time formatting strings are supported. For more information, see the Microsoft Developer Network website: msdn.microsoft.com.