DateTimeElement is used to represent a single input field that allows to select date and time.
Properties:
Usage
Here’s an example of how you can create an instance of theDateTimeElement class:
In this example, a new instance of DateTimeElement is created with the elementId “1” and the label text “Select a Date”.
Example
Here is an example that showcases the creation and manipulation of an instance ofDateTimeElement: