Using a date variableso that we can run on sqlite