4 Ways to Get Current Date in Android

In this tutorial I will show you 4 different ways to get current date in android.

For doing this we will use Calendar, Date, SimpleDateFormate and System class.

How to Get Current Date in Android?

Method 1:

In this method we will use Calendar and SimpleDateFormate class.

 

Method 2:

We can use Calendar class to get current date in another way.

 

Method 3:

In this method we will use Date and SimpleDateFormate class.

 

Method 4:

Another method in which we will use System and SimpleDateFormate class to get current date

 

Comment below if you know any other way to get current date in android.

2 thoughts on “4 Ways to Get Current Date in Android”

Leave a Comment

Your email address will not be published. Required fields are marked *