Class DateInput<T extends DateInput<T>>


public class DateInput<T extends DateInput<T>> extends Input<T>
Represents an HTML5 <input type="date"> element for selecting dates.

The DateInput provides a date picker interface that allows users to select a date. The value is represented in ISO 8601 format (YYYY-MM-DD).

Usage Example:


 DateInput birthDate = new DateInput("birthDate", "1990-01-15");
 form.addElement(birthDate);
 
Since:
HTML5
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • DateInput

      public DateInput()
      Creates a new DateInput with no name or initial value.
    • DateInput

      public DateInput(String name)
      Creates a new DateInput with the specified name.
      Parameters:
      name - The name attribute for the input element, used for form submission.
    • DateInput

      public DateInput(String name, String value)
      Creates a new DateInput with the specified name and initial date value.
      Parameters:
      name - The name attribute for the input element, used for form submission.
      value - The initial date value in ISO 8601 format (YYYY-MM-DD).