core java
-
Date
Date from specific time
This is an example of how to get a Date from a specific time. The class Date represents a specific…
Read More » -
Date
Convert Date to millisec
In this example we shall show you how to convert a Date to millisec, that means get the long number…
Read More » -
Date
Compare Date objects with compareTo method
With this example we are going to demonstrate how to compare Date objects with compareTo method of the Date class.…
Read More » -
Date
Compare Date objects with before method
This is an example of how to compare Date objects with before(Date when) API method of Date. Comparing a Date…
Read More » -
Date
Compare Date objects with after method
In this example we shall show you how to compare Date objects with after(Date when) method of Date, that tests…
Read More » -
Calendar
Get week of month and year
With this example we are going to demonstrate how to get the week of month and year from a Calendar…
Read More » -
Calendar
Get time in millis using Calendar
This is an example of how to get the time in millis, using the abstract Calendar class, that provides methods…
Read More » -
Calendar
Get current TimeZone using Calendar
In this example we shall show you how to get the current TimeZone using Calendar. The Calendar is an abstract…
Read More » -
Calendar
Compare Dates with before method
With this example we are going to demonstrate how to compare Dates with before(Object when) method of the Calendar class.…
Read More » -
Calendar
Compare Dates with after method
This is an example of how to compare Dates with after(Object when) method of the Calendar class. Comparing a Calendar…
Read More »