Java Today getToday()

Here you can find the source of getToday()

Description

get Today

License

Apache License

Declaration

public static String getToday() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private static Date date = new Date();
    public final static SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");

    public static String getToday() {
        String operationtime = dateFormat.format(new java.util.Date(date.getTime()));
        return operationtime;

    }//from  w w w.  j a v  a 2 s  .  c  o  m
}

Related

  1. getToday()
  2. getToday()
  3. getToday()
  4. GetToday()
  5. getToday()
  6. getToday()
  7. getToday()
  8. getToday()
  9. getToday()