how to get current date and time in android programmatically code example
Example: how to get current date time in android
import java.util.Calendar
Date currentTime = Calendar.getInstance().getTime();
import java.util.Calendar
Date currentTime = Calendar.getInstance().getTime();