Behavior and format of the date and time field within Portal

1.2k Views Asked by At

Behavior and format of the date and time field states:

User Local: The field values are displayed in the user’s local time and formatted as per their current portal language/locale.

Where is the portal user's local time zone configured?

By default, the portal uses the standard date/time formats specified by the website language settings.

Where are these settings?

1

There are 1 best solutions below

2
On

Where is the portal user's local time zone configured?

Check out adx_timezone attribute on the contact record (contact is portal user)

Where are these settings?

Look for timezone/id if you have in your settings. Based on your need Set it.

This may be a missing piece in MS documentation. Since CRM portals built on top of AdX Studio portals, this release notes can be helpful.

Under 7.0.0019 August 13, 2015, it says:

Date/Time format handling has been unified and improved.
Formats can now be specified as .NET custom DateTime format strings using Site Settings, which will be applied to a page's body tag:

  • DateTime/DateFormat (default "M/d/yyyy")
  • DateTime/TimeFormat (default "h:mm tt")
  • DateTime/DateTimeFormat (no default)

Breaking Change: All data-format, data-dateformat, data-timeformat, and data-datetimeformat attributes currently in MomentJS format (if upgrading from 7.0.0008 or later) must be updated to instead use .NET custom DateTime format strings. Please note that .NET Standard DateTime format strings are not supported.

Using Site Settings.