-
Hi What is the best/recomended way of create a Task Scheduling that run last day of every month? |
Beta Was this translation helpful? Give feedback.
Answered by
jamesmh
Sep 18, 2024
Replies: 1 comment
-
There are some options as mentioned in here #382 There's no built in method to do this, specifically. But you can use the scheduler.Schedule<Job>()
.DailyAtHour(12)
.When(() =>
{
var now = DateTime.UtcNow;
return now.Month != now.Add(TimeSpan.FromDays(1)).Month;
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SveinnB
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are some options as mentioned in here #382
There's no built in method to do this, specifically. But you can use the
When()
method to do this on your own by checking if the next day runs into the next month: