Java – How to convert java.util.Date to java.sql.Date and vice-versa ?
In this article, we will discuss how to convert java.util.Date to java.sql.Date and vice-versa 1. java.util.Date class : 2. java.sql.Date class : 3. java.util.Date to Read More
In this article, we will discuss how to convert java.util.Date to java.sql.Date and vice-versa 1. java.util.Date class : 2. java.sql.Date class : 3. java.util.Date to Read More
In this article, we will discuss how to compare 2 Date instances using compareTo() method 1. Date.compareTo() method : 2. Date.compareTo() example : Compare2Dates.java Output Read More
In this article, we will learn how to check whether a given Date is weekend or not ? Check given Date is weekend : Using Read More
In this article, we will learn how to get next and previous date for a given Date Get Next and Previous Date : Using LocalDate Read More
In this article, we will learn how to check whether a given Date or LocalDate or Year or Calendar or GregorianCalendar is leap year or Read More
In this article, we will learn how to get current Timestamp in different ways Get Current Timestamp : Using System.currentTimeMillis() method Using Date Object Using Read More
In this article, we will learn how to get current Date in different ways Get Current Date : Using Date object Using Calendar instance 1. Read More
In this article, we will learn how to get all Dates between start Date and end Date using Java 7, Java 8 and Java 9 Read More
In this article, we will discuss what are the different ways to calculate difference between 2 Date/time Ways to find difference between 2 Date/time : Read More
In this article, we will learn how to calculate number of Days between two Date instances 1. Number of Days between two LocalDate : Both Read More
In this article, we will learn how to convert LocalTime to Sql time and vice-versa in Java 1.8 version Conversion of LocalTime to SQL Time Read More
In this article, we will discuss and learn how to sort List by java.time.OffsetTime in ascending as well as descending order in different ways Sort Read More
In this article, we will learn how to convert GregorianCalendar to XMLGregorianCalendar and vice-versa in Java GregorianCalendar to XMLGregorianCalendar conversion & vice-versa: It is very Read More
In this article, we will learn how to convert Calendar to XMLGregorianCalendar and vice-versa in Java Calendar to XMLGregorianCalendar conversion & vice-versa: It is very Read More
In this article, we will learn how to convert Calendar to GregorianCalendar and vice-versa in Java Calendar to GregorianCalendar conversion & vice-versa: It is very Read More
In this article, we will learn how to convert Timestamp to XMLGregorianCalendar and vice-versa in Java Timestamp to XMLGregorianCalendar conversion & vice-versa : It is Read More
In this article, we will learn how to convert Timestamp to GregorianCalendar and vice-versa in Java Timestamp to GregorianCalendar conversion & vice-versa : It is Read More
In this article, we will learn how to convert Timestamp to Calendar and vice-versa in Java Timestamp to Calendar conversion & vice-versa : It is Read More
In this article, we will learn how to get Date/time along with AM/PM marker and Zone information Get Date/time with AM/PM marker & Zone info Read More
In this article, we will learn how to convert Date to XMLGregorianCalendar in Java 1.8 version and vice-versa Date to XMLGregorianCalendar conversion & vice-versa: It Read More