SmartClient Version: v8.3_2012-11-20/LGPL Development Only (built 2012-11-20)
Using FireFox 19.0.2
I have a simple DateItem inside a DynamicForm. After modifying the date using the ui and saving my form's data ( saveData() )
I seem to get a totally different format inside my executeUpdate's DSRequest data.
saveData will call the executeUpdate method in my DataSource.
If I inspect my "date" attribute in the executeUpdate's DSRequest data I have the following format : Thu May 12 2011 04:00:00 GMT-0400 (Eastern Daylight Time)
Where does this format come from and is there a way to manage this ? I seem to have no control over this formatting, it all happens after a simple saveData.
Using FireFox 19.0.2
I have a simple DateItem inside a DynamicForm. After modifying the date using the ui and saving my form's data ( saveData() )
I seem to get a totally different format inside my executeUpdate's DSRequest data.
Code:
DateItem dateItem = new DateItem();
dateItem.setValueField("date");
dateItem.addChangedHandler(new ChangedHandler()
{
@Override
public void onChanged(ChangedEvent event)
{
((DateItem) event.getSource()).getValue(); // Using this getValue I get this format : Thu May 12 12:00:00 EDT 2011
saveData(); // Saving my DynamicForm's data
}
});
If I inspect my "date" attribute in the executeUpdate's DSRequest data I have the following format : Thu May 12 2011 04:00:00 GMT-0400 (Eastern Daylight Time)
Where does this format come from and is there a way to manage this ? I seem to have no control over this formatting, it all happens after a simple saveData.
Comment