I am subtracting the date part from a string; sometimes there is an extra character at the end like here:
Mon, 1 Oct 2011 10:51:52 -0400%
Sometimes, the date is fine and does not have to be trimmed:
Mon, 21 Oct 2011 10:51:52 -0400
How do I remove this last character ( % in this example) in the case that the character does exist?
datetime