Running an Experience during a certain time period

Running an Experience During a Time Period

First, you will need to include the moment.js library into your project. You can do this by adding the following line into the Global Project Javascript. You can find this in the Settings area of your Project

convert.$.getScript("", function(){

  console.log("moment.js has been included.");



Now include the following code as a Javascript Condition on your Audience:

moment().isBetween('2017-07-12 01:00:00', '2017-08-11 01:00:00');


Now modify the times on that code for the starting time and ending time of the experiment. 


You can find more information about the Global Project Javascript area and Javascript Conditions at:

Global Project Javascript

JS Conditions


Have more questions? Submit a request