# Java Date and Time Utilities for Common Date Calculations

DevFeed: [Java Date and Time Utilities for Common Date Calculations](<https://devfeed.tech/articles/date-util-19280.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/date-util/>)

Author: Shai Almog

Published: 2018-04-04T00:00:00Z

Content type: article

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [DateTime](<https://devfeed.tech/topics/datetime.md>), [Java](<https://devfeed.tech/topics/java.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [java](<https://devfeed.tech/tags/java.md>), [programming](<https://devfeed.tech/tags/programming.md>), [time](<https://devfeed.tech/tags/time.md>)

## AI overview

The article introduces a small Java API for common date calculations, including checking whether a day falls within the daylight saving era. It presents the API as a workaround for limitations in Java's older date and time API.

## Source excerpt

Timezones suck. Especially daylight saving. I don't mind moving the clock or losing an hour of sleep as much as the programming bugs related to that practice. The thing that sucks even more is Java's old date/time API. This was publicly acknowledged by the Java community with JSR 310 which replaced the Java Date & Time API's however due to its complexity we still don't have it yet. As a small workaround we created a small API to perform some common date calculations.