Java SQL Date getFileName()

Here you can find the source of getFileName()

Description

get File Name

License

Open Source License

Declaration

public static String getFileName() 

Method Source Code

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

import java.sql.Date;
import java.text.SimpleDateFormat;

public class Main {
    public static String getFileName() {
        String fileName = "";
        SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss");
        Date curDate = new Date(System.currentTimeMillis());
        fileName = formatter.format(curDate) + ".png";
        return fileName;
    }//www  .  j av  a 2  s . co  m
}

Related

  1. getCurrDay()
  2. getCurrentYear()
  3. getDayOfPerMonth(String theDataStr)
  4. getDiffDays(String begin_dt, String end_dt)
  5. getEndWeekDayOfMonth(String year, String month)
  6. getFirstDayOfNextMonth()
  7. getFirstDayOfThisMonth()
  8. getInsertarEmpleado()
  9. getInsertarEntrada()