Share via


fileUpdatedDate Property

Retrieves a String that represents the date a document or image file was last updated.

expression.fileUpdatedDate

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Example

The following example inserts an image into the active document and then displays a message containing the date the image file was last updated. This example assumes you have an image file named parkbench.jpg. When you run this subroutine, change "parkbench.jpg" to an actual image file in your Web site.

Sub InsertImage()
    Dim objImage As FPHTMLImg
    
    ActiveDocument.body.insertAdjacentHTML where:="beforeend", _
        HTML:="<img src=""parkbench.jpg"" id=""park bench"">"
        
    Set objImage = ActiveDocument.body.all.tags("img").Item("park bench")
    
    MsgBox objImage.fileUpdatedDate
End Sub

Applies to | FPHTMLDocument Object | FPHTMLImg Object | IHTMLDocument2 Object | IHTMLImgElement Object