use correct datetime format for query strings and path params