Java Now nowFile()

Here you can find the source of nowFile()

Description

now File

License

Open Source License

Declaration

public static String nowFile() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    private static SimpleDateFormat fileDateTimeFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH-mm-ss-SSS");

    public static String nowFile() {
        return fileDateTimeFormat.format(new Date());
    }//from w  w  w.ja v a  2 s. c  om
}

Related

  1. nowDateString()
  2. nowDateString(String format)
  3. nowDateToString()
  4. nowDT()
  5. nowDT()
  6. nowFormat(String format)
  7. nowFormat(String format)
  8. nowIdentity()
  9. nowInBasicFormat()