#NEWLINE# def parse_date( self ) : #NEWLINE# #INDENT# if ( self . date != 'UNKNOWN' ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return dateutil . parser . parse ( self . date , dayfirst = self . dayfirst ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( len ( self . date ) == 8 ) : #NEWLINE# #INDENT# date_int = int ( self . date ) #NEWLINE# slashified = ( '%s/%s/%s' % ( txn_date [ 0 : 2 ] , txn_date [ 2 : 4 ] , txn_date [ 4 : ] ) ) #NEWLINE# return dateutil . parser . parse ( slashified , dayfirst = dayfirst ) #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# raise ValueError ( ( "Unrecognized date format: '%s'." % txn_date ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 'UNKNOWN'