Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rahmathullah 7 posts 85 karma points
    Oct 30, 2014 @ 16:07
    Rahmathullah
    0

    Umbraco Remove Automatic Date Conversion to Arabic

    I have a date field in my document type. In Arabic language, the date is being converted to Arabic Date. i wanto keep its in Gregorian Date. 

     

    How to remove this automatic conversion of date.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Oct 30, 2014 @ 16:39
    Jan Skovgaard
    0

    Hi Rahmathullah

    I think you should be able to overwrite the default settings for the web application by adding this

    Hope this helps.

    /Jan

  • Rahmathullah 7 posts 85 karma points
    Oct 31, 2014 @ 07:02
    Rahmathullah
    0

    Hi Jan, 

    Thank you for your response!

    All i need to convert a document type propery. not entire website or entire page.

  • Rahmathullah 7 posts 85 karma points
    Oct 31, 2014 @ 07:34
    Rahmathullah
    101

    I got a solution for  this. Might help someone.

    using System.Globalization;
    reportDate.ToString(new CultureInfo("en"))

    This will override the automatic coversion of dates.

     

  • Mona 36 posts 106 karma points
    Oct 24, 2021 @ 09:19
    Mona
    0

    Dear Rahmathullah,

    I am facing the same issue, could you plz let me know where to add following script.

    **using System.Globalization;

    reportDate.ToString(new CultureInfo("en"))**

    Thanks

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Oct 31, 2014 @ 10:30
    Jan Skovgaard
    0

    Hi Rahmathullah

    Arh, ok :) Well, glad you found a solution and thank you for sharing.

    Cheers, Jan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies