<?xml version="1.0" encoding="utf-8"?>
<refentry xml:id="intlcalendar.setdate" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>IntlCalendar::setDate</refname>
  <refpurpose>Set a date fields</refpurpose>
 </refnamediv>

 <refsect1 role="description">
  &reftitle.description;
  <methodsynopsis role="IntlCalendar">
   <modifier>public</modifier> <type>void</type><methodname>IntlCalendar::setDate</methodname>
   <methodparam><type>int</type><parameter>year</parameter></methodparam>
   <methodparam><type>int</type><parameter>month</parameter></methodparam>
   <methodparam><type>int</type><parameter>dayOfMonth</parameter></methodparam>
  </methodsynopsis>
  <para>
   Sets a date fields to the given value.
  </para>
 </refsect1>

 <refsect1 role="parameters">
  &reftitle.parameters;
  <variablelist>
   <varlistentry>
    <term><parameter>year</parameter></term>
    <listitem>
     <para>
      The new value for <constant>IntlCalendar::FIELD_YEAR</constant>.
     </para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><parameter>month</parameter></term>
    <listitem>
     <para>
      The new value for <constant>IntlCalendar::FIELD_MONTH</constant>.
      The month sequence is zero-based, i.e., January is represented by 0,
      February by 1, …, December is 11 and Undecember (if the calendar has
      it) is 12.
     </para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><parameter>dayOfMonth</parameter></term>
    <listitem>
     <para>
      The new value for <constant>IntlCalendar::FIELD_DAY_OF_MONTH</constant>.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>

 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   &return.void;
  </para>
 </refsect1>

 <refsect1 role="examples">
  &reftitle.examples;
  <para>
   <example>
   <title><function>IntlCalendar::setDate</function> example</title>
    <programlisting role="php">
<![CDATA[
<?php
$intlCal = IntlCalendar::createInstance('UTC');

$intlCal->setDate(2012, 1, 29);
?>
]]>
    </programlisting>
   </example>
  </para>
 </refsect1>

</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
