Class DateTimeLocalInput<T extends DateTimeLocalInput<T>>


public class DateTimeLocalInput<T extends DateTimeLocalInput<T>> extends Input<T>
Represents an HTML5 <input type="datetime-local"> element for selecting local date and time.

The DateTimeLocalInput provides a date and time picker interface without timezone information. The value is represented in ISO 8601 format (YYYY-MM-DDTHH:MM).

Usage Example:


 DateTimeLocalInput meetingTime = new DateTimeLocalInput("meetingTime", "2024-03-15T14:30");
 form.addElement(meetingTime);
 
Since:
HTML5
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • DateTimeLocalInput

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

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

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