I expect the date will be update in the document by the following code, but it has no effect
var document = new Document(“D:\template.docx”);
var sdts = document.GetChildNodes(NodeType.StructuredDocumentTag, true).ToArray();
for (var i = 0; i < sdts.Length; i++)
{
var sdt = (StructuredDocumentTag) sdts[i];
if (sdt.SdtType == SdtType.Date)
{
sdt.FullDate = DateTime.Now;
}
}
document.Save("D:\\temp.docx");