Closed qudooschaudhry closed 1 year ago
doesn't take this either
0 0 11 * 7 6
Please specify CronFormat.IncludeSeconds
in the constructor, otherwise it's unclear in general case whether 6th part is about seconds or about years.
var expression = CronExpression.Parse("0 0 11 * 7 SAT", CronFormat.IncludeSeconds);
Console.WriteLine(expression.GetNextOccurrence(DateTime.UtcNow));
Thank you that was it.
Is this not a valid cron expression?
0 0 11 * 7 SAT
Cronos fails with : 'Unexpected character 'S'.'