Thanks John. I've discovered that datetime.strptime will be available in 2.5, (http://docs.python.org/dev/whatsnew/modules.html) but your example will work in the meantime. BJ