cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sameer_Akbar_J
Frequent Visitor

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
Helper III
Helper III

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))

 

 

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)

rebeccas
Super User
Super User

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (89,545)