Hi, could you share type of dateformat variable?
It should been declared as GenericValue type. Btw, what exactly do you want to do? We have date-time field in csv (as string) you can transform it to DateTime type through Assign activity... In addition csv file format is ready to open in Excel...