Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
I've written a code to convert Persiancalender to GregorianCalendar, but I couldn't found Why it doesn't work truly.
This is my code:
C#
public static void PerasianCalender(DateTime birth)
        {
            GregorianCalendar gCalender = new GregorianCalendar();
            DateTime oldDate = Convert.ToDateTime(gCalender.GetYear(birth) + "/" + gCalender.GetMonth(birth) + "/" + gCalender.GetDayOfMonth(birth));
            Console.WriteLine(oldDate);
        }
Posted
Updated 23-Oct-13 21:06pm
v2

1 solution

Hi,
Without code difficult to help.
For your code, do you search article with yur friend Google. I found this discussion:
http://stackoverflow.com/questions/11222427/convert-date-from-persian-to-gregorian[^] that can help you.
Best regards.
 
Share this answer
 
Comments
Elham.Deljooei 24-Oct-13 3:20am    
Thanks for your answer but it's not work truly.

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