Syed Shareef Ahmed
asked on
How to conver to Hijri date in SSRS
Could any one help me to convert Goergoin Data to Hijri date given in parameter in SSRS. The parameter is integer type where date is converted as =CInt(Format(DateAdd("d",- 1,today()) , "yyyyMMdd")) the default value.
in design view i am inserting a text box and writing an express IIf(Parameters!TDATE.Value >0 ,FORMAT(CDate(Mid(Paramete rs!TDATE.V alue,5,2) + "-" + Right(Parameters!TDATE.Val ue,2) + "-" + Left(Parameters!TDATE.Valu e,4)),"dd- MM-yyyy"), "").
I am also require to convert the date in Hijri date in an other text box.
my back end database is DB2i on iSeries.
in design view i am inserting a text box and writing an express IIf(Parameters!TDATE.Value
I am also require to convert the date in Hijri date in an other text box.
my back end database is DB2i on iSeries.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I think you are using report builder. I did have created report in sql server data tools.
Can you please try to open your rdl file in SSDT or Visual Studio and verify whether you have that option or not.
Can you please try to open your rdl file in SSDT or Visual Studio and verify whether you have that option or not.
ASKER
Yes, i got it in report builder itself, after selecting 'Language' to 'sr=SA' then 'Calender' . But the text expression i am using is not converting it to Hijri date, my expression is as below.
IIf(Parameters!TDATE.Value >0 ,FORMAT(CDate(Mid(Paramete rs!TDATE.V alue,5,2) + "-" + Right(Parameters!TDATE.Val ue,2) + "-" + Left(Parameters!TDATE.Valu e,4)),"dd- MM-yyyy"), "")
IIf(Parameters!TDATE.Value
Covert into date after format.
Using CDate
Using CDate
ASKER
Thanks for prompt and accurate responses.
ASKER
Dear Arif,
Thanks a lot for the solution and sample rdl.
In my report I am not getting 'Hijri' option in the drop down list???
But I can see the 'Hijri' option in the sample rdl you send.
I am attaching a screen shot for you easy reference.
Hijri-Date.JPG