Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4530 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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).

This topic is 4530 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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