locked
Convert Gregorian Date to Hijri Date in Windows Store Apps

    Question

  • Hello folks!

    I need to know how can I convert the Gregorian Date to Hijri Date in Windows Store apps? I can't seem to find any native library or method related to that.

    Your help is much appreciated.

    Thanks

    Arafat

    Saturday, March 14, 2015 3:48 PM

Answers

  • I would have to disagree with you.

    I have accomplished this task writing the two lines of below code;

    CultureInfo cultureInfo = new CultureInfo("ar-SA");
    string date = datePickerControlType.Date.ToString(VPServiceConstants.ShortDateFormat, cultureInfo);

    Thanks
    Arafat


    • Marked as answer by Arafat Tehsin Monday, March 16, 2015 9:33 AM
    Monday, March 16, 2015 8:49 AM

All replies

  • Hi Arafat Tehsin,

    As far as I known, there is no such API in Windows Store to do the conversion. In my mind maybe you can try to create a custom method to do the conversion or you can try the third party libray.

    Best Regards,
    Amy Peng



    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.



    Monday, March 16, 2015 8:36 AM
    Moderator
  • I would have to disagree with you.

    I have accomplished this task writing the two lines of below code;

    CultureInfo cultureInfo = new CultureInfo("ar-SA");
    string date = datePickerControlType.Date.ToString(VPServiceConstants.ShortDateFormat, cultureInfo);

    Thanks
    Arafat


    • Marked as answer by Arafat Tehsin Monday, March 16, 2015 9:33 AM
    Monday, March 16, 2015 8:49 AM
  • Hi Arafat Tehsin,

    I am very very sorry, I have misunderstood your idea. I thought that you want to convert the date from Gregorian Calendar to Hijri Calendar.

    Sorry again.

    Best Regards,
    Amy Peng


    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.



    Monday, March 16, 2015 9:26 AM
    Moderator
  • No issues. :) 
    Monday, March 16, 2015 9:33 AM