Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 994223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:32:38+00:00 2026-05-16T06:32:38+00:00

I created a custom Sharepoint field and a custom renderplattern for it: <RenderPattern Name=DisplayPattern>

  • 0

I created a custom Sharepoint field and a custom renderplattern for it:

<RenderPattern Name="DisplayPattern">

          <Column Name="Date" HTMLEncode="FALSE" Format="DateTime"/>

</RenderPattern>

So basically it is writing out the raw value of the “Date” field. Currently I’m using the output clientside using Javascript:

...
var date = new Date(rawDateString);
...

Here I read the raw date string and parse it into a date object. This works fine so far, however I’m wondering if this is a stable solution. Will Sharepoint region/language/time settings have an impact on this? I want this to work across different settings.

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T06:32:38+00:00Added an answer on May 16, 2026 at 6:32 am

    Yes, this will possibly cause problems. What format does your custom SharePoint field and render pattern output it in?

    JavaScript runs client side and the regional settings are not necessarily the same as the SharePoint site.

    For example what is the date “08-06-2010”? In the US its 6th August in Europe its 8th June.

    If you’ve got a user with UK regional settings on the desktop accessing a site with US regional settings what will happen?

    If you are only using the string in JavaScript and it doesn’t need to be human readable and match the sites regional settings then use a format that stays exactly the same regardless of regional settings such as the RFC1123 format

    // c# - Gives "Mon, 15 Jun 2009 20:45:30 GMT" regardless of regional settings
    return date.ToString("R");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a sharepoint custom list. List items contains various fields like name,
I have created a custom field in and empty sharepoint project and I have
I've created a list (sharepoint 2010) that contains a cumstom field. The custom field
I have created a custom list as a feature in sharepoint. i need to
I've Forms Library in SharePoint 2007. I've created a custom workflow activity that makes
I have created a SharePoint web part which has custom properties that the user
I have created a custom list. I am using the same list in sharepoint
I've created a custom SharePoint application which extends some of the OOTB functionality of
I've created a custom master page in sharepoint that comes with a lot of
I am trying to create a custom field type in SharePoint. My custom field

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.