diff --git a/public/New-DbaAgentSchedule.ps1 b/public/New-DbaAgentSchedule.ps1 index 16f7f917a0..f247525eb0 100644 --- a/public/New-DbaAgentSchedule.ps1 +++ b/public/New-DbaAgentSchedule.ps1 @@ -76,28 +76,28 @@ function New-DbaAgentSchedule { FrequencyRecurrenceFactor is used only if FrequencyType is "Weekly", "Monthly" or "MonthlyRelative". .PARAMETER StartDate - The date on which execution of a job can begin. + The date on which execution of a job can begin. Must be a string in the format yyyyMMdd. If force is used the start date will be the current day .PARAMETER EndDate - The date on which execution of a job can stop. + The date on which execution of a job can stop. Must be a string in the format yyyyMMdd. - If force is used the end date will be '9999-12-31' + If force is used the end date will be '99991231' .PARAMETER StartTime - The time on any day to begin execution of a job. Format HHMMSS / 24 hour clock. + The time on any day to begin execution of a job. Must be a string in the format HHmmss / 24 hour clock. Example: '010000' for 01:00:00 AM. Example: '140000' for 02:00:00 PM. - If force is used the start time will be '00:00:00' + If force is used the start time will be '000000' for midnight. .PARAMETER EndTime - The time on any day to end execution of a job. Format HHMMSS / 24 hour clock. + The time on any day to end execution of a job. Must be a string in the format HHmmss / 24 hour clock. Example: '010000' for 01:00:00 AM. Example: '140000' for 02:00:00 PM. - If force is used the start time will be '23:59:59' + If force is used the end time will be '235959' for one second before midnight. .PARAMETER Owner Login to own the job, defaults to login running the command. @@ -379,10 +379,6 @@ function New-DbaAgentSchedule { } } - # Setup the regex - $RegexDate = '(?