format date for request