Functie FileDateTime

Geeft een tekenreeks terug die de datum en tijd aangeeft waarop een bestand is gemaakt of het laatst werd gewijzigd.

Syntaxis:


FileDateTime (Tekst As String)

Parameters:

Tekst: Elke tekenreeks die een ondubbelzinnige (geen jokertekens) bestandsspecificatie bevat. De URL-notatie kan hier ook worden gebruikt.

Deze functie bepaalt de exacte tijd van aanmaak of laatste wijziging van een bestand, teruggegeven in de opmaak "DD-MM-JJJJ UU:MM:SS".

You can set the locale used for controlling the formatting numbers, dates and currencies in LibreOfficeDev Basic in - Languages and Locales - General. In Basic format codes, the decimal point (.) is always used as placeholder for the decimal separator defined in your locale and will be replaced by the corresponding character.

Hetzelfde geldt voor de landinstellingen voor datum-, tijd- en valuta-opmaak. De BASIC-notatiecode wordt geïnterpreteerd en weergegeven volgens uw landinstelling.

Foutcodes:

5 Ongeldige aanroep van procedure

Voorbeeld:


Sub ExampleFileDateTime
    MsgBox FileDateTime("C:\autoexec.bat")
End Sub