Learn how to use the Java 8 DateTimeFormatter class to format and parse dates and times
Search Results for: dates and times
Introduction to the Java 8 Date/Time API
In this article we will take a look at the new Java 8 APIs for Date and Time and how much easier it is to construct and manipulate dates and times.
Convert String Date to XMLGregorianCalendar in Java
Explore various approaches to converting a String date to an XMLGregorianCalendar instance.
Check if Two Date Ranges Overlap
Explore different scenarios of date range overlap and dive into various approaches and formulas to check for overlaps
Round the Date in Java
Learn how to round the date using the java.util.Date, as well as LocalDateTime and ZonedDateTime.
Get First Date of Current Month in Java
Learn how to obtain the first date of the current month in Java using JDK classes and third-party libraries like Joda Time.
Lightweight Logging With tinylog 2
Learn the fundamental logging methods and configuration parameters of the tinylog 2 logging framework and understand how to issue log entries.
NonUniqueResultException in Spring Data JPA
Learn about the NonUniqueResultException in Spring Data JPA and discover strategies to avoid it.
Format Instant to String in Java
Learn two different ways to format an instant as a string – one using core Java and the other using the Joda-Time library.
A Guide to the sql2o JDBC Wrapper
Learn how to interact with sql2o – a Java library that enables database manipulation using an idiomatic language.
Check If a String Is a Valid Date in Java
Have a look at different ways to check if a String is a valid date in Java
Set the Time Zone of a Date in Java
Learn how to set the time zone of a date in Java 7, Java 8 and Joda-Time
Calculate Age in Java
Learn how to easily calculate age in Java 7, Java 8, and with Joda-Time
Convert String to Date in Java
Learn how to get an object representing a Date from a String in Java
TemporalAdjuster in Java
A quick and practical example of using TemporalAdjusters from java.time.
How to Make Multiple REST Calls in CompletableFuture
This tutorial demonstrates using Java’s CompletableFuture to efficiently retrieve data from multiple REST APIs concurrently, enhancing response times and scalability in microservices.
Finding the Second Smallest Integer in an Array in Java
Explore a few approaches to finding the second smallest number in an array.
OpenAPI Custom Generator
Learn the steps required to create a custom generator for the OpenAPI generator tool.
Save Child Objects Automatically Using JPA
Learn how to save child objects automatically with JPA.
Introduction to Java 22
Explore the latest Java release, Java 22, which is now in General Availability.