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

**URL:** <https://discuss.workflowgen.com/t/net-web-form-in-advanced-mode-how-to-set-the-date-format/217>\
**Category:** Visual Studio Web Forms\
**Created:** [July 20, 2013, 9:04pm UTC](https://discuss.workflowgen.com/t/net-web-form-in-advanced-mode-how-to-set-the-date-format/217 "2013-07-20T21:04:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [July 20, 2013, 9:04pm UTC](https://discuss.workflowgen.com/t/net-web-form-in-advanced-mode-how-to-set-the-date-format/217/1 "2013-07-20T21:04:03Z")

</div>

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:**

```auto
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](https://docs.advantys.com/workflowgen-web-forms-for-visual-studio-developer/web-form-development-advanced-mode) section in the [WorkflowGen Web Forms for Visual Studio Developer Guide](https://docs.advantys.com/workflowgen-web-forms-for-visual-studio-developer).
