Announcements
Hello community and congratulation,
I have an issue on my PA in my company.
I need to fixed a datepicker time, to prevent someone that has changed his local device date (mobile or PC) when using my app?
Hi @ipapoutsidis,
The powerApps function Today() and Now() return the local device date and date-time.
So you should use an API (like this one https://timeapi.io/swagger/index.html) to get the current date time and compare the two values.
Hope this will help you 🙂
Thanks @Fardy1 I will try it!
@Fardy1 Do you have any sample to provide? Or anyone else!!
I will appreciate it!!
You need to create a custom connector that call this API https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam. Here you can find a good tutorial to make one : https://www.alphabold.com/creating-a-custom-connector-for-power-apps/
Then you just have to add the connector in your apps whit this formula
APIName.datetime({timeZone:"Europe/Amsterdam"}).dateTime
The issue of this solution is that it's using a premium connector.
I think of an other free solution. You can create a Sharepoint list, you add a line on start off the app of any value like User().FullName and verify the date of modification included in Sharepoint. I don't now if Sharepoint use the local system date or the real date.
If you don't have the Power Apps premium licence, you can test it and tell me if it works pls.
Thnaks @Fardy1 it does work
@Fardy1 Is to muh to ask you, how I can make to add 2 only more days in my date picker app,
Do you mean you want to compare the real date with Local system date +/- 1 day ?
@Fardy1 before adding the api I hadth Today() for use the maxdate Today() +2, I want make it the same as with Today function when someone click to reserve daysI want him/her have restriction for today plus 2 days!
@Fardy1 I have found the solution for my issue: DateValue(currentDate) +2
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 377 Most Valuable Professional
11manish 165 Super User 2026 Season 2
MS.Ragavendar 110 Super User 2026 Season 2