We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Incorrect Dateformat DocProperties

I have created a Word-2007 document with some custom docproperties, with aspose I want to read those DocProperties and write them to XML.

When I create a custom date property and specify a date (11-11-2011) Word saves this property correctly.
With Aspose I read the property and then it specifies 10-11-2011 22:00:00:
- Why is the time value specified (and why isn’t it 00:00:00)
- Must the date be fixed by specifying the culture information (datetime format)

Hi

Thanks for your request. Aspose.Words returns exactly the same value as stored in the document. Here is how this property is stored inside DOCX document:

<property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="4" name="datumveld">

<vt:filetime>2011-11-10T22:00:00Z</vt:filetime>

</property>

As you can see, value is the same as Aspose.Words returns.

Best regards,