Annotation Interface DateType


@Retention(RUNTIME) @Target({FIELD,PARAMETER}) public @interface DateType
Specifies that a field or parameter must conform to a date format.

This annotation validates that the value of the annotated field or parameter matches the date format specified by the format attribute (e.g., "yyyy-MM-dd").

Since:
1.0.0
Version:
1.0.0
Author:
Sandratra NIAINA
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The date format that the annotated field or parameter must follow.
  • Element Details

    • format

      String format
      The date format that the annotated field or parameter must follow.
      Returns:
      the date format string (e.g., "yyyy-MM-dd")