Question

How to add validation for specific days (i.e., Monday, Tuesday etc.,) in a calender

How to add validation for specific days (i.e., Monday, Tuesday etc.,) in a Calendar. For example if we consider a Bank Application it must be valid from Monday to Saturday (9 AM to 5 PM), if the end user picks a date on Sunday it must through an error(i.e., Enter a date on working day). Similarly for time also if the end user enters invalid time like 1 AM it must through an error like enter the time in working hours.

Comments

Keep up to date on this post and subscribe to comments

Pega
December 24, 2018 - 3:42am

Hi 

For weekdays, you can check the checkbox  "Disable Weekends" in presentation tab of DateTime control.