c# - Persian Calendar Problem with CultureInfo -


What's wrong with this code?

  // Error (exception) Message: Valid Calendar System for an Unrecognized Culture. Globalization. CulverInfo CI = New System Globalization. Crop ("FA-IR"); Ci.DateTimeFormat.Calendar = New system. Globalization.PersianCalendar (); Application.CurrentCulture = ci;   

And what's the solution? Can I add a calendar type to the Windows XP regional option? :)

A filthy reflection-based solution is here:



Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -