Method FormatDate
FormatDate(DateTimeOffset, string, CultureInfo)
Formats a date through a Word date/time picture such as dd MMMM yyyy or
h:mm am/pm.
public static string FormatDate(DateTimeOffset value, string picture, CultureInfo culture)
Parameters
valueDateTimeOffsetThe value.
picturestringThe picture.
cultureCultureInfoThe formatting culture.
Returns
- string
The formatted date.
Exceptions
- ArgumentNullException
pictureorcultureis null.