#NEWLINE# def value_to_db_date( self , value ) : #NEWLINE# #INDENT# '\n        Transform a date value to an object compatible with what is expected\n        by the backend driver for date columns.\n        ' #NEWLINE# if ( value is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return six . text_type ( value )