Java Today getToday()

Here you can find the source of getToday()

Description

get Today

License

Open Source License

Declaration

public static String getToday() 

Method Source Code


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

import java.util.Calendar;

public class Main {
    public static String getToday() {
        Calendar now = Calendar.getInstance();
        StringBuffer sb = new StringBuffer();
        sb.append(now.get(Calendar.YEAR)).append(now.get(Calendar.MONTH) + 1)
                .append(now.get(Calendar.DAY_OF_MONTH));
        return sb.toString();
    }/* ww  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()