Showing results for 
Search instead for 
Did you mean: 
Post Prodigy
Post Prodigy

Compare the Submitted record with Current time



If I would like to enable the Submit button after 48 hours for the same user, How would I do that please suggest how to achieve to save the time for the user submits the record to the Sharepoint List. Then make this button available by comparing the current time with the time the record was submitted.


I am not able to compare the record was submitted with Current time - I tried by using the below formula but no success.


If(Text(Label13.Text , "[$-en-US]mm/dd/yyyy" ) = Text( Today(), "[$-en-US]mm/dd/yyyy" ),DisplayMode.Edit,/Disabled)







Super User
Super User


You would use the DateDiff() function for that. 

     DateDiff( Now(), DateValue(Label13.Text ), Hours
     ) > 48,  DisplayMode.Edit,/Disabled
Super User
Super User


If this works as a solution for your question, please accept it so others can find it.

Post Prodigy
Post Prodigy



Its not working . What I am trying to achieve here is that I am not allowing anyone to open the page again. And if wants to come for the first time it allow to do all the activity on the screen, but if he/she tried 2nd time it wount allow . He/she need to wait for 48 Hrs of time to again visit the page.



Earlier i was trying to do this which is mention below





Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.


New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,966)