System::Globalization::CultureInfo ^CulInfo =
gcnew System::Globalization::CultureInfo("he-IL");
CulInfo->DateTimeFormat->Calendar =
gcnew System::Globalization::HebrewCalendar;
CulInfo->DateTimeFormat->DateSeparator = " ";
System::DateTime dt;
dt.Parse(L"כ״ג ניסן תשס״ח", CulInfo);
Unfortunately an exception is fired:
The string was not recognized as a valid DateTime. There is a unknown
word starting at index 0.
Any ideas what could be wrong here?
J.M.