Java Today today()

Here you can find the source of today()

Description

today

License

Open Source License

Declaration

public static String today() 

Method Source Code

//package com.java2s;
/*//from  w  ww  .  j a v  a  2 s  . c  o m
 * Copyright 2010 Mttang.com All right reserved. This software is the
 * confidential and proprietary information of Mttang.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Mttang.com.
 */

import java.text.SimpleDateFormat;

public class Main {
    static final SimpleDateFormat yyyyMMdd = new SimpleDateFormat("yyyy-MM-dd");

    public static String today() {
        return yyyyMMdd.format(new java.util.Date());
    }
}

Related

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