Get now in Date - Android java.util

Android examples for java.util:Date

Description

Get now in Date

Demo Code

import android.annotation.SuppressLint;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

public class Main{

    public static Date now() {
        return new Date();
    }//from w w w .java  2 s .c om

}

Related Tutorials