Perspective Expression error scan illegal comma character

system.date.daysBetween() is part of the jython scripting language. It is not a valid expression.

Are you truly using an expression, or is this a script? If it is a script, seeing the full script as well as the error would be very helpful.

If it is an expression then try the dateDiff expression function.

dateDiff(first,second,'min')