PersianDate.NET icon indicating copy to clipboard operation
PersianDate.NET copied to clipboard

"yy/MM/dd hh:00".ToEn() throws exception.

Open msd-kharazi opened this issue 8 years ago • 0 comments

Hi Iman, Thanks for your valuable efforts.

The problem should be in the "private static int[] SplitRoozMahSalNew(string farsiDate)" method : ... if (strArray.Length >= 5) num2 = int.Parse(strArray[4].TrimStart(new char[1] { '0' }).Trim()); ... and more specific in: ... TrimStart(new char[1] { '0' } ...

msd-kharazi avatar Feb 18 '18 14:02 msd-kharazi