Skip to main content
Inspiring
May 19, 2006
Answered

Run a task every two week

I have a task that needs to be run every two weeks (14 days then 28 days, etc... after the date.) from a date that is extracted from a database. How would I do this?
    This topic is closed to new replies. Start a new post to keep the conversation going.
    Dan_BracukCorrect answer
    Inspiring
    May 19, 2006
    Schedule the job to run every day.
    Extract the date once so that it's a constant.
    In the template, hard code that contstant date. Use if/else logic on mod 14 of the date diff to determine whether or not any code runs.

    2 replies

    Vbprog40Author
    Inspiring
    May 20, 2006
    Thakn you!
    Translate
    Dan_BracukCorrect answer
    Inspiring
    May 19, 2006
    Schedule the job to run every day.
    Extract the date once so that it's a constant.
    In the template, hard code that contstant date. Use if/else logic on mod 14 of the date diff to determine whether or not any code runs.
    Translate