Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
Hi Rahmathullah
I think you should be able to overwrite the default settings for the web application by adding this
Hope this helps.
/Jan
Hi Jan,
Thank you for your response!
All i need to convert a document type propery. not entire website or entire page.
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.
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
Arh, ok :) Well, glad you found a solution and thank you for sharing.
Cheers, Jan
is working on a reply...
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.
Continue discussion
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.
Hi Rahmathullah
I think you should be able to overwrite the default settings for the web application by adding this
Hope this helps.
/Jan
Hi Jan,
Thank you for your response!
All i need to convert a document type propery. not entire website or entire page.
I got a solution for this. Might help someone.
This will override the automatic coversion of dates.
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
Hi Rahmathullah
Arh, ok :) Well, glad you found a solution and thank you for sharing.
Cheers, Jan
is working on a reply...
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.