- Home /
System.Globalization.CCEastAsianLunisolarCalendar.GetMonth (DateTime date)
Hi Everyone, I am try to get the Chinese Calendar Day. But when I try to GetMonth(nowTime) an Exception Happened.
==================
Exception: GetMonth
System.Globalization.CCEastAsianLunisolarCalendar.GetMonth (DateTime date) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Globalization/CalendricalCalculations.cs:1929) System.Globalization.EastAsianLunisolarCalendar.GetMonth (DateTime time) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Globalization/EastAsianLunisolarCalendar.cs:159)
==========
These is some code below
System.DateTime nowTime = System.DateTime.Now; System.Globalization.TaiwanLunisolarCalendar tlc = new System.Globalization.TaiwanLunisolarCalendar(); int month = tlc.GetMonth(nowTime);
=====================
But It works Fine at Visual Studio 2015
Seems Unity using mscorlib.dll 2.0 and VS Using mscorlib.dll 4.0 or Someting ?
I am not very sure. And Don't Know How to Fix it. Please. If anyone can Help and Thanks.
Some libs in System.Globalization isn't .net2.0 original,you can see msdn's doc. I also met this problem and I'm looking for single lib to use. Wish to help you.
Your answer
![](https://koobas.hobune.stream/wayback/20220612074947im_/https://answers.unity.com/themes/thub/images/avi.jpg)