When creating a macro in Impromptu to create a report and email it, part of the text in the subject and body is a date that is extracted from the Impromptu report.
We want the date to display in the email as "January 2007"; however it also comes through as "31/01/2007" even it we format it in the Impromptu column or try to reformat it within the macro as:
dim MyDate
MyDate = objImpReport.GetDataValue(4, CurrentRow)
MyDate = Format(MyDate,"mmmm yy")".
How can we preserve the correct format when using CognosScript?
We want the date to display in the email as "January 2007"; however it also comes through as "31/01/2007" even it we format it in the Impromptu column or try to reformat it within the macro as:
dim MyDate
MyDate = objImpReport.GetDataValue(4, CurrentRow)
MyDate = Format(MyDate,"mmmm yy")".
How can we preserve the correct format when using CognosScript?