cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Sameer_Akbar_J
Level: Powered On

Default Date and Restricted Time Limit

Hello all,

I'm building an application in which I want the datepicker to pick Every week Saturday as it's default date. My 2nd query is I want to restrict the user to update the data in a given time limit.
For eg: I want to user to enter the data between 9 am to 9 pm PST time only. If the user try to after that then it show an error.

Please help!
3 REPLIES 3
kidvallejo
Level: Powered On

Re: Default Date and Restricted Time Limit

For your date I believe the following will default to the upcoming Saturday for you (it was designed for the following Monday, thus the -2 at the end):

 

Today() + 7 - Weekday(Today(), MondayZero-2)

 

and on the submit button use something like:

 

If(Or(Hour(Now())<9,Hour(Now())>21),Notify("True",NotificationType.Error),SubmitForm(Form))

 

 

Sameer_Akbar_J
Level: Powered On

Re: Default Date and Restricted Time Limit

Hi Kidvallejo,

 

Thank so much for the solutions, can you please explain me the second formula:

 

If(Or(Hour(Now())<9,Hour(Now())>21),Notify("True",NotificationType.Error),SubmitForm(Form))

Which time zone does it follow, as I want to follow PST Time Zone and I want to restrict the user to update the data between (7 am to 7 pm PST)

Super User
Super User

Re: Default Date and Restricted Time Limit

For the time portion you can also just modify the HourValue in the dropdown that allows them to select the Hour. Go to the Items of it and remove 01,02,03,04,05,06,07 and 22, 23...maybe 00 also and default it to 09 ( I remove the 00 sometimes)

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,804)