DigitalSignatureSignTime Property

Gets the time the document was signed.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.8.0


public DateTime SignTime { get; }

Property Value

Type: DateTime


Shows how to validate each signature in a document and display basic information about the signature.
// Load the document which contains signature
Document doc = new Document(MyDir + "Digitally signed.docx");

foreach (DigitalSignature signature in doc.DigitalSignatures)
    Console.WriteLine("*** Signature Found ***");
    Console.WriteLine("Is valid: " + signature.IsValid);
    // This property is available in MS Word documents only
    Console.WriteLine("Reason for signing: " + signature.Comments); 
    Console.WriteLine("Signature type: " + signature.SignatureType);
    Console.WriteLine("Time of signing: " + signature.SignTime);
    Console.WriteLine("Subject name: " + signature.CertificateHolder.Certificate.SubjectName);
    Console.WriteLine("Issuer name: " + signature.CertificateHolder.Certificate.IssuerName.Name);

See Also