# How to set culture of popup calendar control in .NET code-behind

**URL:** <https://discuss.workflowgen.com/t/how-to-set-culture-of-popup-calendar-control-in-net-code-behind/1704>\
**Category:** Form Designer\
**Created:** [September 27, 2020, 9:29am UTC](https://discuss.workflowgen.com/t/how-to-set-culture-of-popup-calendar-control-in-net-code-behind/1704 "2020-09-27T09:29:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sab](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sab](https://discuss.workflowgen.com/u/sab)\
**Post date:** [September 27, 2020, 9:29am UTC](https://discuss.workflowgen.com/t/how-to-set-culture-of-popup-calendar-control-in-net-code-behind/1704/1 "2020-09-27T09:29:36Z")

</div>

I’m trying to set culture of eWorld popup calendar control to current user culture or “ar-LY” in .NET code-behind, However, I got the wrong value of Month when using property of (SelectedDate.Month), so it seems there’s an issue when setting it from code-behind whereas it works well when modifying (Default.aspx) by adding Tag (Culture=“ar-LY”) to ew:calendarpopup, but I lose it when saving from built-in Form Designer.

Any idea to sort out such an issue ?

---

<div class="post-metadata">

**Author:** ![lyelle](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/lyelle/32/455_2.png) [@lyelle](https://discuss.workflowgen.com/u/lyelle)\
**Post date:** [December 22, 2020, 3:01pm UTC](https://discuss.workflowgen.com/t/how-to-set-culture-of-popup-calendar-control-in-net-code-behind/1704/2 "2020-12-22T15:01:07Z")

</div>

Hello,

The eWorld popup calendar doesn’t properly support Arabic culture. The label will not properly display the day of the week.

As for why you are getting the wrong value, WorkflowGen uses the date format `Month/Day/Year` for validation, but the `ar-LY` language/culture uses the format `Day/Month/Year`.

For your last inquiry, if you want to modify the form directly from the `Default.aspx` file, you won’t be able to use the built-in Form Designer. Those become custom-made forms.

Thank you,  
Lynn​
