<DateInput>

The DateInput tag renders as a single-line textbox at run time that accepts dates and, optionally, time. .

Syntax

<DateInput
    AccessKey="string"
    BackColor="color name|#dddddd"
    BorderColor="color name|#dddddd"
    BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge| Inset|Outset"
    BorderWidth="size"
    CssClass="string"
    Culture="locale id"
    DataField="string"
    DataType="datetime|date"
    DateOnly="True|False"
    Font-Bold="True|False"
    Font-Italic="True|False"
    Font-Names="string"
    Font-Overline="True|False"
    Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium| Large|X-Large|XX-Large"
    Font-Strikeout="True|False"
    Font-Underline="True|False"
    ForeColor="color name|#dddddd"
    Format="date/time formatting expression"
    Height="size"
    ID="string"
    Nullable="True|False"
    ReadOnly="True|False"
    Style="string"
    TabIndex="integer"
    ToolTip="string"
    Visible="True|False"
    Width="size"
/> 
 

Remarks

When you need to enter dates in your forms, the DateInput tag will help. It allows you to specify what culture XMod Pro should use when evaluating the input so it can better convert it to the appropriate datetime data type. Additionally, you can specify a format for the input that will be used when editing a record. The "datatype" attribute defaults is datetime.

Back to top

Example

<addform>
  ...
  <table>
    <tr>
      <td>
        <label for="txtEventDate" text="Event Date" />
        <DateInput id="txtEventDate" datafield="EventDate" datatype="datetime"
           culture="fr-FR" format="dd-MM-yyyy"/>

      </td>
    </tr>
    <tr>
      <td colspan="2">
        <addbutton text="Add"/>&nbsp;<cancelbutton text="Cancel"/>
      </td>
    </tr>
  </table>
</addform>
Back to top