Table of Contents

Method FormatDate

Namespace
DocWright.Dom.Fields
Assembly
DocWright.Dom.dll

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

value DateTimeOffset

The value.

picture string

The picture.

culture CultureInfo

The formatting culture.

Returns

string

The formatted date.

Exceptions

ArgumentNullException

picture or culture is null.