I\'m new with C#, I have some basic knowledge in Java but I can\'t get this code to run properly.
It\'s just a basic calculator, but when I run the program VS2008 gi
it was my problem too .. in my case i changed the PERSIAN number to LATIN number and it worked. AND also trime your string before converting.
PersianCalendar pc = new PersianCalendar();
char[] seperator ={'/'};
string[] date = txtSaleDate.Text.Split(seperator);
int a = Convert.ToInt32(Persia.Number.ConvertToLatin(date[0]).Trim());