Switch SQL date queries to use 24hr format