Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Unanswered

DateTime issue on portal

(0) ShareShare
ReportReport
Posted on by

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.

  • natalya Profile Picture
    133 on at
    Re: DateTime issue on portal

    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.

     

  • Community Power Platform Member Profile Picture
    on at
    Re: DateTime issue on portal

    Hi @ragavanrajan ,

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

     

  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: DateTime issue on portal

    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.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35