.NET web form in Advanced Mode: How to set the date format?

When you create a .NET web form in Advanced Mode you may have issues with date format stored in the form data XML file.

To have the simple mode behavior, in form data dataset, all the datetime cols must have the following attributes:

  • DataType=System.DateTime
  • DateTimeMode=Utc

.NET sample:

System.Data.DataTable dt = new DataTable();  
System.Data.DataColumn myDateTimeField = new   
 DataColumn("field1",typeof(System.DateTime));  
 dt.Columns.Add(myDateTimeField);  
 myDateTimeField.DateTimeMode = System.Data.DataSetDateTime.Utc;

For more information, see the Web Form Creation: Advanced Mode section in the WorkflowGen Web Forms for Visual Studio Developer Guide.