Code:
Option ExplicitPrivate Sub Datumsvergleich()
Dim oApp As Inventor.Application
Set oApp = ThisApplication
Dim oDoc As Document
Set oDoc = oApp.ActiveDocument
Dim oPropDate As Date
oPropDate = oDoc.PropertySets.Item("{32853F0F-3444-11D1-9E93-0060B03C1CA6}").Item("Creation Time").Value
Dim oFS As FileSystemObject
Set oFS = CreateObject("Scripting.FileSystemObject")
Dim oFile As Object
Set oFile = oFS.GetFile(oDoc.FullFileName)
Dim oFileDate As Date
oFileDate = Format(oFile.DateCreated, "DD.MM.YYYY")
If oPropDate < oFileDate Then
oDoc.PropertySets.Item("{32853F0F-3444-11D1-9E93-0060B03C1CA6}").Item("Creation Time").Value = oFileDate
oDoc.PropertySets.Item("{32853F0F-3444-11D1-9E93-0060B03C1CA6}").Item("Designer").Value = oApp.UserName
End If
End Sub