I'm opening a file named in the following format :
ex130626.log
exYYMMDD.log
following code wants 4-digit year. How to get the two digit year like 13?
today = datetime.date.today()
filename = 'ex{0}{1:02d}{2:02d}.log'.format(today.year, today.month, today.day)