I have a word document which has Date field. When i load the word document in Aspose API and call document.GetText() or document.Range.Text, i get the following text for date field
DATE \\@ \"MM/dd/yyyy\" \\* MERGEFORMAT
03/05/2012
Is there anyway to get ONLY resultant date when i call document.GetText() or document.Range.Text, So in above case it should only return 03/05/2012
Hi there,
Thanks for your inquiry. In this case, instead of using GetText, please use ToTxt method. I hope, this will help.
Best Regards,