Skip to content

Instantly share code, notes, and snippets.

@jattoabdul
Created July 11, 2018 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jattoabdul/12898f035d0ccc15f69568560b93f56b to your computer and use it in GitHub Desktop.
Save jattoabdul/12898f035d0ccc15f69568560b93f56b to your computer and use it in GitHub Desktop.
def __num_suffix(self, check_in_date):
"""
Strip the date suffix and return the date
Before comparing the date
"""
date_value = str(check_in_date).split(' ')
day_value = date_value[0][:-2]
date_value[0] = day_value
return ' '.join(date_value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment