SharePoint Document Issues

How to Fix SharePoint JSON Date Formatting Showing the Wrong Day

Bushra ParveenBushra Parveen Nov 3, 2026 868 views

Question details

Users need to correct a SharePoint display issue where custom JSON column formatting causes dates to show up one day earlier for users in different geographical locations.

How to Fix SharePoint JSON Date Formatting Showing the Wrong Day
Product
SharePoint Online
Device & OS
Windows
Scenario
Using custom JSON formatting, specifically the getDate function, in a SharePoint list or library column to display dates.
Observed behavior
Dates display one day earlier for users depending on their local Windows time zone, bypassing or ignoring the SharePoint site's established regional settings.
Before you start

Ensure you have Site Administrator permissions to access and modify SharePoint regional settings, and check your local Windows time zone configuration.

Solution 1Recommended

Verify Site Regional Settings and Windows Time Zones

Use this method to align your local machine's time zone with the SharePoint site's regional settings, isolating whether the issue is user-specific.

SharePoint JSON formatting executes on the client side. Functions like getDate automatically pull the date and time from the user's local Windows OS settings rather than the SharePoint server's regional settings. If a user's Windows time zone differs significantly from the site settings, the date may visually shift to the previous day.

1
Check local Windows time settings

Right-click the clock on your Windows taskbar, select 'Adjust date/time', and confirm your current time zone setting.

2
Test with an unaffected user account

Log into the affected SharePoint account on a computer used by an unaffected user (with an aligned time zone) to confirm the issue is localized to the device's OS settings.

3
Verify SharePoint regional settings

Navigate to your SharePoint site, click the gear icon for 'Site settings', and select 'Regional settings' under Site Administration. Confirm the 'Time Zone' matches the expected standard (e.g., UTC+1).

Microsoft Q&A Support: If you require custom JSON scripts that strictly ignore local time zones, you may need to consult the Microsoft Q&A for SharePoint Online, as client-side rendering behaviors are deeply integrated into how SharePoint handles JSON.
Free Microsoft Office alternative

Manage and Format Exported Data with WPS Office

If SharePoint's online JSON date formatting is causing headaches, exporting your lists to edit locally is a reliable workaround. WPS Office provides a free, lightweight, and highly compatible suite for editing your spreadsheets and documents offline, free from complex server time zone conflicts.

Fully compatible with Microsoft Excel (.xlsx), Word, and PowerPoint formatsEasily format dates in spreadsheets without complex JSON codingLightweight application that runs smoothly on all major operating systemsFamiliar user interface makes transitioning and data management seamless
microsoft office alternative - wps office

Frequently Asked Questions

Why does the getDate function in SharePoint JSON show the wrong date?

The getDate function in SharePoint JSON formatting operates on the client side. It retrieves the date based on the user's local Windows machine time zone rather than the SharePoint site's configured regional settings, which can cause a one-day shift if the time zones differ significantly.

How do I change the regional settings for a SharePoint site?

Click the gear icon to access Site Settings, then select 'Regional Settings' under the Site Administration section. From there, you can update the Time Zone drop-down to match your organization's required standard.

Can I force SharePoint JSON to ignore the local Windows time zone?

Because JSON formatting runs in the browser, it natively interacts with local OS settings. To force strict server-side time zone alignment, it is generally recommended to use SharePoint Calculated Columns rather than JSON, as calculated columns process data on the server side.