Showing results for 
Search instead for 
Did you mean: 
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!
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:





Hi Kidvallejo,


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



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

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

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!


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.


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)