Oct 02, 2017, 12:52 PM
Combobox show current date
Hello,
I am trying to create a combobox and assign the displayfield with current date in 2 different formats.
How can I achieve that?
Here is my current code with static values:
I am trying to create a combobox and assign the displayfield with current date in 2 different formats.
How can I achieve that?
Here is my current code with static values:
<ext:ComboBox runat="server" ID="cmbFormatFFC" DataIndex="DateFormat" FieldLabel="Date Format" Width="400" ForceSelection="true" EmptyText="Select date format...">
<Items>
<ext:ListItem Text="1/1/2017" Value="d/M/yyyy" />
<ext:ListItem Text="1-JAN-2017" Value="dd-MMM-yyyy" />
</Items>
</ext:ComboBox>