Method SetDate
- Namespace
- DocWright.Dom.ContentControls
- Assembly
- DocWright.Dom.dll
SetDate(DateTimeOffset, CultureInfo?)
Sets a date picker's value from a date rather than from text, formatting the
displayed text with the control's own w:dateFormat.
public void SetDate(DateTimeOffset value, CultureInfo? culture = null)
Parameters
valueDateTimeOffsetThe date.
cultureCultureInfoThe culture used to format the displayed text, or null for InvariantCulture.
Exceptions
- ContentControlEditException
The control is not a date picker, or the preserved markup could not be rewritten.