Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Date Created

Featured Replies

I want to get the date created from a file. I see a date modified but not created. How can I do this?

return new Date(new File(filePath).lastModified());

Here is the statement

Oreste

Oreste

There are methods in the nio (NewInputOutput) classes

If you have it installed in your version of Java this will work ( standard in Java 7 )


import java.nio.file.Files

import java.nio.file.Paths

import java.nio.file.attribute.BasicFileAttributes



return Files.readAttributes(Paths.get(fm_file), BasicFileAttributes.class).creationTime()

John

  • Author

Doesn't work for me I dont think I have Java.

If you are using our ScriptMaster plugin successfully you have Java installed (32-bit) as our plugins are executed in the JVM (Java Virtual Machine).

  • Author

Oh ok Well the above command doest work for me. I will redownload the Scriptmaster maybe it is an old version

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.