I have found solution how to set last modified time in Java for specific file (Android: How to get & set directory modification date).
Is there a way to set creation date and time in Java for specific file as well?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Exactly the same way. A Date contains an instant in time, with a millisecond precision. Just change the format used to parse the date. Read the documentation for that.