none
GregorianCalendar not found in System.Globalization RRS feed

  • Question

  • Hi,

    i have this code in Windows Phone

    using System.Globalization; private static GregorianCalendar gc = new GregorianCalendar();

    private HebrewCalendar hc = new HebrewCalendar();

    I want to upgrade the project to Universal App.

    So, I made a Portable Class Library.

    but unfortunately, the System.Globalisation does not include these classes.  (I check with the object browser, and this is not there too).

    In msdn, the reference seems to be for Windows 8.1, Windows Phone 8.1 and portable class library.

    here's the link:

    http://msdn.microsoft.com/en-us/library/system.globalization.gregoriancalendar(v=vs.110).aspx

    Why I can find it in .Net for windows phone and not in the regular .Net?


    Monday, August 25, 2014 2:39 PM

Answers

  • Hi Guys,

    I referred to the MSDN document which you pointed. The class only support in Windows Phone Silverlight application and other general desktop application. But it doesn’t support Universal App. You can see the Version Information in that page.

    If you want to this kind of Calendar, please try http://msdn.microsoft.com/en-us/library/windows/apps/windows.globalization.calendaridentifiers.gregorian. But this only supports Windows Phone Runtime application (Universal App).

    Regards,

    Jimmy


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, August 26, 2014 2:48 AM