<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.datetime.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'datetime.setisodate.php',
    1 => 'DateTime::setISODate',
    2 => 'Sets the ISO date',
  ),
  'up' => 
  array (
    0 => 'class.datetime.php',
    1 => 'DateTime',
  ),
  'prev' => 
  array (
    0 => 'datetime.setdate.php',
    1 => 'DateTime::setDate',
  ),
  'next' => 
  array (
    0 => 'datetime.settime.php',
    1 => 'DateTime::setTime',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/datetime/datetime/setisodate.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="datetime.setisodate" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">DateTime::setISODate</h1>
  <h1 class="refname">date_isodate_set</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">DateTime::setISODate</span> -- <span class="refname">date_isodate_set</span> &mdash; <span class="dc-title">Sets the ISO date</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-datetime.setisodate-description">
  <h3 class="title">Опис</h3>
  <p class="para">Об&#039;єктно-орієнтований стиль</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>DateTime::setISODate</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$year</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$week</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$dayOfWeek</code><span class="initializer"> = 1</span></span>): <span class="type"><a href="class.datetime.php" class="type DateTime">DateTime</a></span></div>

  <p class="para rdfs-comment">Процедурний стиль</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><a href="function.date-isodate-set.php" class="methodname">date_isodate_set</a></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="class.datetime.php" class="type DateTime">DateTime</a></span> <code class="parameter">$object</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$year</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$week</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$dayOfWeek</code><span class="initializer"> = 1</span></span><br>): <span class="type"><a href="class.datetime.php" class="type DateTime">DateTime</a></span></div>

  <p class="para rdfs-comment">
   Set a date according to the ISO 8601 standard - using weeks and day offsets
   rather than specific dates.
  </p>
  <p class="para">
   Like <span class="methodname"><a href="datetimeimmutable.setisodate.php" class="methodname">DateTimeImmutable::setISODate()</a></span> but works with
   <span class="classname"><a href="class.datetime.php" class="classname">DateTime</a></span>.
  </p>
  <p class="para">
   The procedural version takes the <span class="classname"><a href="class.datetime.php" class="classname">DateTime</a></span> object as
   its first argument.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-datetime.setisodate-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   <dt><code class="parameter">object</code></dt>
<dd><p class="para">Тільки процедурний стиль: об&#039;єкт
<span class="classname"><a href="class.datetime.php" class="classname">DateTime</a></span> повертається функцією
<span class="function"><a href="function.date-create.php" class="function">date_create()</a></span>. Вона змінює цей
об&#039;єкт.</p></dd>
   
    <dt><code class="parameter">year</code></dt>
    <dd>
     <p class="para">
      Year of the date.
     </p>
    </dd>
   
   
    <dt><code class="parameter">week</code></dt>
    <dd>
     <p class="para">
      Week of the date.
     </p>
    </dd>
   
   
    <dt><code class="parameter">dayOfWeek</code></dt>
    <dd>
     <p class="para">
      Offset from the first day of the week.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-datetime.setisodate-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Повертає змінений об&#039;єкт <span class="classname"><a href="class.datetime.php" class="classname">DateTime</a></span> для ланцюжків методів.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-datetime.setisodate-seealso">
  <h3 class="title">Прогляньте також</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="datetimeimmutable.setisodate.php" class="function" rel="rdfs-seeAlso">DateTimeImmutable::setISODate()</a> - Sets the ISO date</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>