Publish later allows you to select past time
Publish later field allows us to select a past time. Is there a way to prevent this?

Publish later field allows us to select a past time. Is there a way to prevent this?

@shubhanshusi2, the minDate property works as intended. However, it just adds a date constraint. The use case is to prevent them from selecting a time in the past. How can I prevent them from selecting a past time?
You can register the validator to the registry using foundation.validation.validator. and then add it to the validation property of the date picker field https://developer.adobe.com/experience-manager/reference-materials/6-5/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/datepicker/index.html
In the validator, you can add the condition to prevent the user from selecting past time.
But this is an overkill from my perspective If the user is selecting past time that means he wants to complete the publishing action immediately or expects the content to be already published. Which can be achieved from publish now action.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.