Skip to content

SubFile::FileDate property

The FileDate property contains last-modified date and time of the sub-document as a double-precision number (DATE).

If the date information is not available, the value is 0.

IGRTime FileDate { get; }
IGRTime getFileDate() throws IGRException;
@property
def FileDate(self) -> IGRTime
IGRTime getFileDate();
[propget] HRESULT FileDate([out, retval] IGRTime* *result);

Return Value

IGRTime : The date of the file.

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
using Hyland.DocumentFilters;

var api = new Hyland.DocumentFilters.Api();
api.Initialize("License Code", ".");

using var doc = api.GetExtractor("filename.doc");
doc.Open(Hyland.DocumentFilters.OpenType.BodyAndMeta);

foreach (var subfile in doc.SubFiles)
{
    using (subfile)
    {
        // act on subfile
        Console.Out.WriteLine("Name: " + subFile.Name);
        Console.Out.WriteLine("ID: " + subFile.ID);
        Console.Out.WriteLine("Date: " + subFile.FileDate);
        Console.Out.WriteLine("Size: " + subFile.FileSize);        
    } 
}

Additional Information

The integral part of the FileDate value is the number of days that have passed since 12/30/1899 and the fractional part represents the percentage of a 24-hour day that has elapsed.

See Also