spring-boot-date-and-time-starter

Customizable output format for LocalDate and LocalDateTime in Spring Boot using Jackson Object Mapper builtin to spring-boot-starter-web

License

License

MIT
Categories

Categories

Spring Boot Container Microservices Date and Time General Purpose Libraries
GroupId

GroupId

com.github.timo-reymann
ArtifactId

ArtifactId

spring-boot-date-and-time-starter
Last Version

Last Version

2.7.0
Release Date

Release Date

Type

Type

jar
Description

Description

spring-boot-date-and-time-starter
Customizable output format for LocalDate and LocalDateTime in Spring Boot using Jackson Object Mapper builtin to spring-boot-starter-web
Project Organization

Project Organization

Pivotal Software, Inc.
Source Code Management

Source Code Management

https://github.com/timo-reymann/spring-boot-date-and-time-starter/tree/master

Download spring-boot-date-and-time-starter

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.timo-reymann/spring-boot-date-and-time-starter/ -->
<dependency>
    <groupId>com.github.timo-reymann</groupId>
    <artifactId>spring-boot-date-and-time-starter</artifactId>
    <version>2.7.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.timo-reymann/spring-boot-date-and-time-starter/
implementation 'com.github.timo-reymann:spring-boot-date-and-time-starter:2.7.0'
// https://jarcasting.com/artifacts/com.github.timo-reymann/spring-boot-date-and-time-starter/
implementation ("com.github.timo-reymann:spring-boot-date-and-time-starter:2.7.0")
'com.github.timo-reymann:spring-boot-date-and-time-starter:jar:2.7.0'
<dependency org="com.github.timo-reymann" name="spring-boot-date-and-time-starter" rev="2.7.0">
  <artifact name="spring-boot-date-and-time-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.timo-reymann', module='spring-boot-date-and-time-starter', version='2.7.0')
)
libraryDependencies += "com.github.timo-reymann" % "spring-boot-date-and-time-starter" % "2.7.0"
[com.github.timo-reymann/spring-boot-date-and-time-starter "2.7.0"]

Dependencies

compile (6)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar
org.jetbrains.kotlin : kotlin-reflect jar
org.springframework.boot : spring-boot-starter jar 2.3.1.RELEASE
org.springframework.boot : spring-boot-starter-web jar 2.3.1.RELEASE
org.springframework.boot : spring-boot-configuration-processor Optional jar 2.3.1.RELEASE
com.fasterxml.jackson.datatype : jackson-datatype-jsr310 jar

test (2)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-test-junit jar
org.springframework.boot : spring-boot-starter-test jar 2.3.1.RELEASE

Project Modules

There are no modules declared in this project.

spring-boot-date-and-time-starter

Maven Central Version

What is this?

Customizable output format for LocalDate and LocalDateTime in Spring Boot using Jackson Object Mapper builtin to spring-boot-starter-web

Requirements

Spring Boot 2.2.x+

How to use?

Simply add it to your dependencies

<dependency>
    <groupId>com.github.timo-reymann</groupId>
    <artifactId>spring-boot-date-and-time-starter</artifactId>
    <version>2.7.0</version>
</dependency>

To customize the output format use your application yml:

jackson.date-and-time:
  date-format: 'dd.MM.YYYY'
  date-time-format: 'dd.MM.YYYY HH:mm:ss'

The default values are ....

... for LocalDate: yyyy-MM-dd

... for LocalDateTime: yyyy-MM-dd HH:mm:ss

Versions

Version
2.7.0
2.6.2
2.6.0
2.2.1
2.2.0
2.1.0
2.0.0-pre
2.0.0
1.0.0