I have to perform some action using Custom Timer Job on alternate day? Code to Create and start Timer job(in feature receiver) below,but it runs daily and i have to run it on alternate days?
How to do it?
private bool CreateJob(SPSite site) { bool jobCreated = false; try {
TimerJob job = new TimerJob(JobName, site.WebApplication);
job.Title = JobName;
SPMinuteSchedule schedule = new SPMinuteSchedule();
schedule.BeginSecond = 0;
schedule.EndSecond = 59;
schedule.Interval = 15;
job.Schedule = schedule;
job.Update();
}
catch (Exception)
{
return jobCreated;
}
return jobCreated;
}