get Calendar Now - Android java.util

Android examples for java.util:Calendar

Description

get Calendar Now

Demo Code

import android.util.Log;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

public class Main{

    public static Date getNow() {
        return Calendar.getInstance().getTime();
    }//from   w  ww  . j a va  2s.co  m

}

Related Tutorials