Created
July 11, 2018 10:15
-
-
Save jattoabdul/12898f035d0ccc15f69568560b93f56b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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