How do I go about removing the last 11 characters from a variable in ActionScript 2? I’m trying to delete the last 11 characters from a variable that contains a date from a twitter XML feed so that the variable goes from “Tue Jun 07 03:15:15 +0000 2011” to “Tue Jun 07 03:15:15”
Share
use substr method of the String object: