Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all

In Crystal report , i have a column in my report that is Georgian Date ...

I Want To Convert It To Persian Date ...

How Do I Access this field To Convert ?

Please Help Me ..

Thnaks A Lot
Posted

1 solution

If that date column is coming from a database, you can do something like this

C#
recordSelection.AppendFormat(
 "{{table_name.sale_date}} >= {0} and {{table_name.sale_date}} <= {1}",
       startDate.ToCrystalString(),
       endDate.ToCrystalString());


.ToCrystalString() is a custom method I have used to change the sql datetime to crystal date time for my use. You can make a method of your own to convert to persian date.

Let me know if you need further assistance.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900