x.date() It will return a string: the creation date of the file. x.revdate() will return a string coding for the last revision date.