#NEWLINE# def get_date( self , date_formats = None , languages = None ) : #NEWLINE# #INDENT# date_formats = ( date_formats or [ '%d-%m-%Y %I:%M %p' , '%d-%m-%Y %I:%M' , '%d-%m-%Y' ] ) #NEWLINE# languages = ( languages or [ 'ar' ] ) #NEWLINE# date_data = self . _parser_get_date ( self . source , date_formats , languages ) #NEWLINE# date_obj = date_data . get ( 'date_obj' ) #NEWLINE# if date_obj : #NEWLINE# #INDENT# date_data [ 'date_obj' ] = self . _hijri_to_gregorian ( date_obj . year , date_obj . month , date_obj . day , date_obj ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . _detect_parse_error ( date_formats , languages ) #NEWLINE# #UNINDENT# except HijriGregorianFebruaryMismatch : #NEWLINE# #INDENT# date_data = self . _fix_hijri_gregorian_feb_mismatch ( date_formats , languages ) #NEWLINE# #UNINDENT# #UNINDENT# return date_data