简体   繁体   中英

any workaround or alternative to convert datetime to persian calendar?

i'm developing a wp8.1 project that needs a conversion to persian calendar. it worked fine on my device. it was almost ready to publish but i faced a problem when testing with windows app certification kit.

i used this nuget package. it uses System.Globalization.PersianCalendar api but i get this error and errors like this.

  This API is not supported for this application type - Api=System.Globalization.PersianCalendar. Module=MSCORLIB, PUBLICKEYTOKEN=B77A5C561934E089. File=PersianDate.dll.

i know its because this api is not supported in wp8.1 but my question is what now? is there any way to convert datetime to persian format?

使用Jon Skeet的Noda Time ,根据这篇文章: 如何在c#中使用nodatime作为波斯语?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM