Convert java.util.Date to java.time.LocalDate Transforming Time Converting java util Date to java time Local Date The world of Java dates and times can be a bit of a maze especially when dealing with legacy 3 min read 07-10-2024 8
Java 8 time: Iterate over a day's LocalTime in period steps Iterating Through a Day in Java 8 A Step by Step Guide Java 8 introduced the powerful java time API greatly simplifying date and time manipulation But have you 2 min read 07-10-2024 4
How can I mock java.time.LocalDate.now() Mocking Javas Local Date now for Unit Testing When writing unit tests for code that relies on the current date mocking java time Local Date now is often necessa 3 min read 07-10-2024 8
Get the specific 15 minutes timeframe based on current time Pinpointing the 15 Minute Timeframe A Developers Guide Have you ever needed to know which 15 minute interval you re currently in This seemingly simple task can 2 min read 07-10-2024 13
Mocking LocalDate.now() but when using plusDays it returns null? Mocking Local Date now and the plus Days Null Pointer Exception A Deep Dive The Problem You re trying to mock Local Date now in your Java code using a mocking f 3 min read 05-10-2024 8
Spring Data JPA 3 auditing @CreatedDate of java.time.OffsetDateTime does not get populated Spring Data JPA 3 Auditing Why Your Created Date Offset Date Time Isnt Populating Have you ever encountered the frustrating situation where Spring Data JPAs Cre 2 min read 05-10-2024 9
Using LocalDateTime in Java Spring framework, still gives Date,parse() error for MongoDb collection Understanding Local Date Time in Java Spring Framework and Mongo DB Integration Issues When working with Java Spring Framework in conjunction with Mongo DB you 3 min read 30-09-2024 12
Spring Boot and Batch Processor Item Date field is null Understanding the Issue Spring Boot and Null Item Date Field in Batch Processor Spring Boot has revolutionized the way developers build enterprise applications 3 min read 21-09-2024 23
Bind saved Date in Edit Form using Angular 17 Binding Saved Date in Edit Form Using Angular 17 In Angular applications its common to retrieve data from a service and bind it to a form for editing In this ar 2 min read 19-09-2024 20
Swagger Implementation for LocalDateTime type Swagger Implementation for Local Date Time Type in Java When building RES Tful APIs in Java you might encounter the need to implement date and time representati 2 min read 14-09-2024 19
Why is java.sql’s Timestamp.of() converting incorrectly from java.time’s LocalDateTime? Understanding the Conversion Issue Between java sql Timestamp and java time Local Date Time The problem at hand involves the incorrect conversion of java time L 2 min read 14-09-2024 26
Which datatype to use at JPA entity to store and retrieve date using java 8 Choosing the Right Data Type for Storing and Retrieving Dates in JPA with Java 8 When working with Java Persistence API JPA for database operations handling dat 3 min read 14-09-2024 25
Converting between java.time.LocalDateTime and java.util.Date Bridging the Gap Converting Between Local Date Time and java util Date in Java Java 8 introduced a powerful new Date and Time API offering the Local Date Time c 2 min read 06-09-2024 26
What's the difference between ZonedDateTime and OffsetDateTime? Zoned Date Time vs Offset Date Time Choosing the Right Java Time API Class The Java Time API JSR 310 introduced a wealth of new classes for handling dates and t 2 min read 06-09-2024 18
long timestamp to LocalDateTime Converting Long Timestamps to Local Date Time in Java When working with timestamps in Java one common challenge developers face is converting long epoch timesta 2 min read 06-09-2024 18
LocalDateTime to specific timezone Converting Local Date Time to a Specific Timezone A Guide When working with dates and times in Java you often encounter situations where you need to convert a L 2 min read 05-09-2024 16
Cannot deserialize value of type `java.time.LocalDateTime` from String "2020-12-18 16:04:07-06" Deserializing java time Local Date Time from a String in Java This article explores how to successfully deserialize a java time Local Date Time object from a St 3 min read 04-09-2024 18
MaterialDatePicker returns incorrect date after selection Material Date Picker Date Discrepancies Troubleshooting Time Zones and UTC The Material Date Picker is a powerful tool for selecting dates within Android apps H 3 min read 04-09-2024 12
Java Time: plus days on UTC date/time changes the hour Java Time Why Adding Days to a UTC Date Can Change the Hour Understanding how Javas java time package handles time zones is crucial for accurate calculations an 2 min read 01-09-2024 17
How to use the Instant Class in Java to get Elapsed Time in Seconds to a Certain Number of Decimal Points? Precisely Timing Your Java Code with Instant and Decimal Formatting Ever need to measure the exact execution time of a Java code snippet down to the millisecond 2 min read 30-08-2024 20
Exception in thread "main" java.time.format.DateTimeParseException: Text 'Apr 1 2022 12:00:00:000AM' could not be parsed at index 19 Demystifying java time format Date Time Parse Exception Text Apr 1 2022 12 00 00 000 AM could not be parsed at index 19 This error message signals a common prob 3 min read 29-08-2024 20
Changing time zone doesn't make LocalTime.now() returns different value, why? Why Changing Time Zones Doesnt Immediately Affect Local Time now in Java Have you ever found yourself baffled by Javas Local Time now method seemingly ignoring 2 min read 28-08-2024 21
How to get Java 8 time classes to work on Jersey Jax-RS clients? How to get Java 8 time classes to work on Jersey Jax RS clients This article will walk through configuring Jersey clients to work with Java 8 time classes We ll 4 min read 28-08-2024 29