DateTimeFormat Property
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Specifies a string format which is applied to date / time values. Is equivalent to the MS Word field flag “\@”.
Syntax
public string DateTimeFormat { get; set; }Public Property DateTimeFormat As StringExamples
The following example uses MergeField.DateTimeFormat to configure date time format as part of the merge field workflow. The configured value is checked before the workflow continues.
mergeField.DateTimeFormat = "0.00";
if (!string.IsNullOrWhiteSpace(mergeField.DateTimeFormat))
{
Console.WriteLine($"Date Time Format: {mergeField.DateTimeFormat}");
}mergeField.DateTimeFormat = "0.00"
If Not String.IsNullOrWhiteSpace(mergeField.DateTimeFormat) Then
Console.WriteLine($"Date Time Format: {mergeField.DateTimeFormat}")
End If