Skip to content

Instantly share code, notes, and snippets.

@bhimsur
Last active August 21, 2022 10:35
Show Gist options
  • Save bhimsur/65b30f8c2a6b7a0b767b67dac7feffe4 to your computer and use it in GitHub Desktop.
Save bhimsur/65b30f8c2a6b7a0b767b67dac7feffe4 to your computer and use it in GitHub Desktop.
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.annotation.JsonFormat;
@JacksonAnnotationsInside
@Retention(RetentionPolicy.RUNTIME)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
public @interface MyCustomDate {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment