title: Date type and format swagger in laravel
body: <p>i am using swagger documentation to chow api data, i one of my case i want to get data from database by a specific date, get a day by a $day variable i use a method and working fine in Postman
  in postman :
  <a href="https://i.stack.imgur.com/36Ge5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/36Ge5.png" alt="enter image description here" /></a></p>
  <p>But in swagger i dont know how i can add parameter $day in swagger</p>
  <p>my code work fine :</p>
  <pre><code>public function getdatabydate() {
      $p = &quot;zero&quot;;
      $day = date('Y-m-d ', strtotime($_GET['day']));
      $users = DB::select('select * from S where (`timestamp` like &quot;'.$day.'%&quot;)' );
      if (!$users){
          return $p;
      }
      return $users;
  
  
      }
  </code></pre>
  <p>In swagger :</p>
  <pre><code>/**
       * @OA\Get(
       *
       *   path=&quot;/api/getdatabydate&quot;,
       *   summary=&quot;Get weather&quot;,
       *   @OA\Response(
       *     response=200,
       *     description=&quot;successful operation&quot;,
        *   ),
        * @OA\Parameter(
   *    description=&quot;Date day&quot;,
   *    in=&quot;header&quot;,
   *    name=&quot;day&quot;,
   *    required=true,
   *    @OA\Schema(
   *       type=&quot;string&quot;,
   * format =&quot;date-time&quot;,
   *    )
   * ),
       *     security={
       *         {&quot;bearerAuth&quot;: {}}
       *     }
       * ),
       */
  </code></pre>