In this article
When a respondent enters a Forsta interview, a variable called interview_start is set with the exact time and date. Similarly, the interview_end variable is set when the interview is finished. In some cases it may be useful to access those variables, for example when changing different parts of the date.
You can set different parts of the date as year, month and day or set to actual date of both variables:
var IS : DateTime = interview_start;
if ( IS.Month == 10 )
{
interview_start = new DateTime (IS.Year, 9, IS.Day, IS.Hour, IS.Minute, IS.Second);
interview_start = DateTime.Now;
interview_start = new DateTime (2008, 10, 10);
}