def strFromDate(date):
 return time.strftime('%Y_%m_%d %H:%M', date)

def strFromDate ( date ) : return time . strftime ( '%Y_%m_%d %H:%M' , date )
simply returns a string with a std format from a date object .