Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

System::DateTime::Parse

2 views
Skip to first unread message

Jedediah Marcus

unread,
Apr 28, 2008, 4:37:47 AM4/28/08
to
I would like to parse a hebrew date into a System::DateTime variable:

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.

0 new messages