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

Community site session details

Session Id : qrVpcdadP4v6rnkFJsmHMi
Power Pages - Power Apps Portals
Unanswered

DateTime issue on portal

Like (0) ShareShare
ReportReport
Posted on 23 Jul 2021 11:07:47 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.

I have the same question (0)
  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on 23 Jul 2021 at 11:26:06
    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.

  • Community Power Platform Member Profile Picture
    on 23 Jul 2021 at 11:51:34
    Re: DateTime issue on portal

    Hi @ragavanrajan ,

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

     

  • natalya Profile Picture
    133 on 23 Jul 2021 at 20:29:32
    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.

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Pages

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 45 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 44 Super User 2025 Season 2

#3
Jerry-IN Profile Picture

Jerry-IN 40

Last 30 days Overall leaderboard