Datetime->date for lwap stuff in queries.py