Skip to main content


 

Symptoms


Dear,

We have a problem with calendar control.

We have two calendar on my form one for Hijri date and one for Gregorian date.

We have a radio button to select either Hijri or Gregorian cala.

One user select Hijri we are showing Hijri date calendar, and once user select Gregorian we are showing Gregorian Calendar.

The difference between this two calendar is just the format for Hijri we set Arabic (Saudi Arabia), and for Gregorian we set English (United State).

Once user select the date from Hijri Calendar we are transferring this value to Gregorian Calendar.

And we are saving this value in our table from Gregorian control.

It is working fine.

The problem in read/load method when we are loading the data in Hijri Calendar control, it is giving "Date is invalid or incorrect format".

Please help us to resolve this issue.

How we will show the saved date in Hijri Calendar control.




 

Diagnoses


We made a kspx solution that shows another approach to the issue and that resolved the issue
 

Resolution

Customer closed the ticket after supplying a solution




 

Hello,

i found a solution for that,

instead of the rule , when Georgian calendar is changed, transfer data to Hijri calendar

use expression on the Hijri calendar, as follows:

Add Days ( To Date and Time ( GregCalendar ) , 0 )

 

i think the calendar need to have a DateTime object not string as happens in transfer data

 

tell me if it's working with you


Reply