'Lookup the Date Format - either by locale or by global setting'

def get_L10n_date_format(self):

    language = current.session.s3.language
    if (language in self.date_formats):
        return self.date_formats.get(language)
    else:
        return self.L10n.get('date_format', '%Y-%m-%d')
