Skip to main content

Hi,

 

I'm facing issue with dates in K2 form.

My requirement is to show the calendar in Hijri Arabic format and user select the date.

This is working just find by changing the calendar format (Lang Region) to Arabic.

But the issue comes once I want to pass calendar's value to other control i.e. label, textbox , it return it back to Gregorian date !!

Which means, the calendar view is ArabicHijri but in the back-end its picking the equivalent Gregorian date.

 

Any idea how to solve that.

 

Thanks.

 

The data value of DateTime data types is stored in Universal Time Coordinated (UTC).  The visualization in SmartForms is adjusted to the requested format.  If you use a data label and set its data type to DateTime you can also set the display format just like the calendar control.  You can set or change the display format at run time using the 'set a control's property' action.



 



If you want to capture the date or time component separately without saving the data value as UTC, select the Date or Time data type instead of DateTime.


Reply