function buildResponse(message, result) {
  return {
    message,
    result
  };
}
Builds the response for checkInvalidDate.
@param {string} message
  The message for response.
@param {boolean} result
  The boolean flag for response.
@returns {{message: string, result: boolean}} - The response object.