code:
<field name="test1" type="date" title="Test" required="false" />
DataSource ds = DataSource.get("testDS");
DynamicForm form = new DynamicForm();
form.setDataSource(ds);
DateItem item1 = new DateItem("test1");
item1.setUseTextField(true);
DateItem item2 = new DateItem("test2");
item2.setUseTextField(true);
SubmitItem item3 = new SubmitItem();
form.setItems(item1,item2,item3);
item1 value type = date
item2 value type = datetime
why?
<field name="test1" type="date" title="Test" required="false" />
DataSource ds = DataSource.get("testDS");
DynamicForm form = new DynamicForm();
form.setDataSource(ds);
DateItem item1 = new DateItem("test1");
item1.setUseTextField(true);
DateItem item2 = new DateItem("test2");
item2.setUseTextField(true);
SubmitItem item3 = new SubmitItem();
form.setItems(item1,item2,item3);
item1 value type = date
item2 value type = datetime
why?
Comment