Skip to content

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

@msd-kharazi

Description

@msd-kharazi

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'
}
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions