FileDateTime Function

Returns a string that contains the date and the time that a file was created or last modified.

Syntax:

Len (Text As String)

Paremetre:

Text: Reťazec určujúci názov a cestu priečinka, ktorý chcete odstrániť. Tiež je možné použiť notáciu URL .

This function determines the exact time of creation or last modification of a file, returned in the format "MM.DD.YYYY HH.MM.SS".

You can set the locale used for controlling the formatting numbers, dates and currencies in LibreOffice Basic in - Language Settings - Languages. 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.

To isté platí pre národné nastavenia formátu dátumu, času a meny. Formátovacie kódy sa interpretujú a zobrazia podľa aktuálneho národného nastavenia.

Error codes:

5 Neplatné volanie procedúry

Príklad:

Sub ExampleFileDateTime

    MsgBox FileDateTime("C:\autoexec.bat")

End Sub