web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / DateTime issue on portal
Power Pages
Unanswered

DateTime issue on portal

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

My requirement - Lets say there are two users USER A (From INDIA) and USER B (From USA). Now if USER A updates the date to 5th of July 2021 and time to 3:00PM. When USER B looks at the same record, he should be seeing his local time zone, which would be 5th of July 2021 at 4:30AM and not Exact same date (5th of July 2021 and time to 3:00PM)

I am facing issue with the date. I have a field called "first dose date" and "second dose date" with "Date only" datatype and "User Local" behavior in CDS. User is inserting that date field from model driven app as shown below in image and viewing it on portal. I am also showing other fields on portal with data and time. 

Tejasvi_munge_1-1627038161680.png

 

Based on my date setting in CDS and from front end (I am converting the JSON date field value i.e. UTC to user's local timezone) it is not working properly.
 
Please suggest me some solution. 
 
Moreover, please help to understand below thing-
When I fill "first dose date" and "second dose date" in model driven app for the first time in IST timezone it returns below data in the JSON (focus on time portion),
Tejasvi_munge_0-1627037952443.png
 
Later when I update the same record's "second dose date" in model driven app in same time zone the time changes as shown in the below screenshot -
Tejasvi_munge_2-1627038349008.png

How this works exactly? Based on MS documentation time portion is always 12AM.

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @Anonymous , 

     

         I am assuming you have set the Date Time format in Site Settings. Please have a look at the below article and let us know if that helps 

    https://www.dancingwithcrm.com/date-fields-on-powerappsportals/ 

    https://debajmecrm.com/working-with-custom-datetime-formats-in-powerapps-dynamics-365-portals/ 

     

    ------------

     

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @ragavanrajan ,

    Can you please guide what needs to perform and which dateformat?

     

  • natalya Profile Picture
    133 on at

    Hi @Anonymous ,

    Portal uses Moment.js for representind dated.

    Please refer to Moment.js | Guides (momentjs.com)

    You will find some info there.

    Also there are some more info below

    Datetime zone issue in Liquid – Dynamics 365 Portals | HIMBAP

    Hoping it helps.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 42

#2
Valantis Profile Picture

Valantis 24

#3
omkarsupreme Profile Picture

omkarsupreme 23

Last 30 days Overall leaderboard