FileDateTime Function

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

āļšāˇāļģāļš āļģāˇ“āļ­āˇ’āļē:


FileLen (Text As String)

āļ´āļģāˇāļ¸āˇ’āļ­āˇ“āļąāˇŠ:

File: āļąāˇ’āˇāˇŠāˇ€āļ­ āļœāˇœāļąāˇ” āļ´āˇ’āļģāˇ’āˇ€āˇ’āļ­āļģāļēāļšāˇŠ āļ‡āļ­āˇ’ āļ•āļąāˇ‘āļ¸ āļ­āļąāˇŠāļ­āˇ” āļ´āˇŠâ€āļģāļšāˇāˇāļąāļēāļšāˇŠ. āļ”āļļāļ§ 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 - 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.

The same applies to the locale settings for date, time and currency formats. The Basic format code will be interpreted and displayed according to your locale setting.

Error codes:

5 Invalid procedure call

āļ‹āļ¯āˇāˇ„āļģāļĢāļē:


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

Please support us!