FileDateTime Function
Returns a string that contains the date and the time that a file was created or last modified.
Syntaks
FileDateTime (Text As String)
Parameter
Text: Any string expression that contains an unambiguous (no wildcards) file specification. You can also use URL notation.
This function determines the exact time of creation or last modification of a file, returned in the format "MM.DD.YYYY HH.MM.SS".
Du kan angi de lokale innstillingene som kontrollerer formatering av datoer, tall og valuta i LibreOffice Basic i LibreOffice - InnstillingerVerktÞy - Alternativer - SprÄk Innstillinger - SprÄk. I Basic formatkoderblir alltid descimaler (.) brukt som plassholdere for desimalskilletegnet som er defineret i de lokale innstillingene. Punktumet vil bli erstattet med det aktuelle skilletegnet.
Det samme gjelder for de lokale innstillingene for dato-, tid- og valuta-format. Basic-formatet vil bli tolket og vist i samband, med til de lokale sprÄkinnstillingene.
5 Ugyldig prosedyreoppkall
Eksempel:
Sub ExampleFileDateTime
MsgBox FileDateTime("C:\autoexec.bat")
End Sub