#NEWLINE# def _format_datetime64_dateonly( x , nat_rep = 'NaT' , date_format = None ) : #NEWLINE# #INDENT# if ( ( x is None ) or lib . checknull ( x ) ) : #NEWLINE# #INDENT# return nat_rep #NEWLINE# #UNINDENT# if ( not isinstance ( x , Timestamp ) ) : #NEWLINE# #INDENT# x = Timestamp ( x ) #NEWLINE# #UNINDENT# if date_format : #NEWLINE# #INDENT# return x . strftime ( date_format ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return x . _date_repr