title: Cron job run every x weeks and on specific days
body: <p>I want to create a cron job that runs every x weeks and on a specific weekdays.
  for example: run every 2 weeks on midnight every Sunday and Monday.</p>
  
  <p>the cron expression is stored for every "plan" and i use <a href="http://code.google.com/p/ncrontab/wiki/SqlServerCrontab" rel="noreferrer">ncrontab</a> function in SQL Server 2008 to generate the dates of given cron expression.</p>
  
  <p>Is there an expression for it? or even join of several expressions?</p>
  
  <p>I've tried to use the following expression, but it always gives the the same days in months</p>
  
  <pre><code>0 0 1/14 * *
  
  2012-01-01 00:00:00.000
  2012-01-15 00:00:00.000
  2012-01-29 00:00:00.000
  2012-02-01 00:00:00.000
  2012-02-15 00:00:00.000
  2012-02-29 00:00:00.000
  </code></pre>
  
  <p>EDIT:<br>
  I was looking for a recurrence of every x days/weeks and the main problem with cron, is that it resets the recurrence to the first day of month every time.
  for example, if i start the recurrence on 29th for every 3 days, the next occurrence will be the 1st day of next month.</p>
  
  <p>I've neglected cron for the next solution:
  <a href="http://www.codeproject.com/Articles/20343/Recurring-Date-Generator-with-Pattern-Coding" rel="noreferrer">http://www.codeproject.com/Articles/20343/Recurring-Date-Generator-with-Pattern-Coding</a> </p>