Forum Discussion
AlexKaras
12 years agoCommunity Hero
Hi Mike,
If I got your question correctly and assuming that you already assigned a string value to the IndentureDate variable and need it to contain the string result, I would do the following (untested, so the code might require correction):
-- Use the 'Set Variable Value';
-- Set the Mode field to 'Code Expression';
-- Enter the following into the Value field:
aqConvert.DateTimeToFormatStr(aqDateTime.AddDays(aqConvert.strToDate(IndentureDate), -7), '%m/%d/%Y')
Does this help?
If I got your question correctly and assuming that you already assigned a string value to the IndentureDate variable and need it to contain the string result, I would do the following (untested, so the code might require correction):
-- Use the 'Set Variable Value';
-- Set the Mode field to 'Code Expression';
-- Enter the following into the Value field:
aqConvert.DateTimeToFormatStr(aqDateTime.AddDays(aqConvert.strToDate(IndentureDate), -7), '%m/%d/%Y')
Does this help?