Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 1680

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::WDate Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1WDate.html">WDate</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WDate Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WDate" -->
<p>A value class that represents a date on the Gregorian calendar.  
 <a href="classWt_1_1WDate.html#details">More...</a></p>

<p><code>#include &lt;Wt/WDate&gt;</code></p>

<p><a href="classWt_1_1WDate-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a88823f7de1cc16e9211015733f15eac3">WDate</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a <em>Null</em> date.  <a href="#a88823f7de1cc16e9211015733f15eac3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#ae88e64cff5fa3f28283f26fa7c8e4b99">WDate</a> (int year, int month, int day)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Specify a date by year, month, and day.  <a href="#ae88e64cff5fa3f28283f26fa7c8e4b99"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#ad9f497db41a525c9955aa6c45fa9a692">setDate</a> (int year, int month, int day)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the date by year, month, and day.  <a href="#ad9f497db41a525c9955aa6c45fa9a692"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WDate.html">WDate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a55c4709c6cec54f8dd3e69355381630f">addDays</a> (int ndays) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds days.  <a href="#a55c4709c6cec54f8dd3e69355381630f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WDate.html">WDate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#ad85d82a3aa5c2613550e9cf52983d66b">addMonths</a> (int nmonths) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds months.  <a href="#ad85d82a3aa5c2613550e9cf52983d66b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WDate.html">WDate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a60915b6de93a109dccbcaa589890370e">addYears</a> (int nyears) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds years.  <a href="#a60915b6de93a109dccbcaa589890370e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#aa2d504303dfd4768b6f1ce942fb348be">isNull</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns if this date is <em>Null</em>.  <a href="#aa2d504303dfd4768b6f1ce942fb348be"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a6e7f68474aa2fd9570cede81c85f6e3a">isValid</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns if this date is valid.  <a href="#a6e7f68474aa2fd9570cede81c85f6e3a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a69b9c1a505490006774614a3b5a402f0"></a><!-- doxytag: member="Wt::WDate::year" ref="a69b9c1a505490006774614a3b5a402f0" args="() const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a69b9c1a505490006774614a3b5a402f0">year</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the year. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9eb0594dde9b3c92ecf66d399558dd81"></a><!-- doxytag: member="Wt::WDate::month" ref="a9eb0594dde9b3c92ecf66d399558dd81" args="() const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a9eb0594dde9b3c92ecf66d399558dd81">month</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the month (1-12). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e0d6855b08d7293e55c9929ec7737ca"></a><!-- doxytag: member="Wt::WDate::day" ref="a7e0d6855b08d7293e55c9929ec7737ca" args="() const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a7e0d6855b08d7293e55c9929ec7737ca">day</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the day of month (1-31). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a933d7b11edbbc207dfe0baaabeeceb57">dayOfWeek</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the day of week (1-7).  <a href="#a933d7b11edbbc207dfe0baaabeeceb57"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a122bd295f40ad30d63b3a00e4817f0b9"></a><!-- doxytag: member="Wt::WDate::daysTo" ref="a122bd295f40ad30d63b3a00e4817f0b9" args="(const WDate &amp;date) const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a122bd295f40ad30d63b3a00e4817f0b9">daysTo</a> (const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;date) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the difference between two dates (in days). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#acee5169b63142a6543dc0bb709303769">toJulianDay</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts the date to a Julian day.  <a href="#acee5169b63142a6543dc0bb709303769"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaa48849f8e1cd2bb6dacd5a675fc8bb9"></a><!-- doxytag: member="Wt::WDate::operator&lt;" ref="aaa48849f8e1cd2bb6dacd5a675fc8bb9" args="(const WDate &amp;other) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#aaa48849f8e1cd2bb6dacd5a675fc8bb9">operator&lt;</a> (const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares two dates. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a29ab4d83fc8e27fa37e64c2ba8ad1d96"></a><!-- doxytag: member="Wt::WDate::operator&lt;=" ref="a29ab4d83fc8e27fa37e64c2ba8ad1d96" args="(const WDate &amp;other) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a29ab4d83fc8e27fa37e64c2ba8ad1d96">operator&lt;=</a> (const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares two dates. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab450e46b3da2f0662c946f8952d0b187"></a><!-- doxytag: member="Wt::WDate::operator&gt;" ref="ab450e46b3da2f0662c946f8952d0b187" args="(const WDate &amp;other) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#ab450e46b3da2f0662c946f8952d0b187">operator&gt;</a> (const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares two dates. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a26f44d313ed4a8ba899879375020dbd8"></a><!-- doxytag: member="Wt::WDate::operator&gt;=" ref="a26f44d313ed4a8ba899879375020dbd8" args="(const WDate &amp;other) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a26f44d313ed4a8ba899879375020dbd8">operator&gt;=</a> (const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares two dates. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef3b62770bdbcb7335fd16871d0651f1"></a><!-- doxytag: member="Wt::WDate::operator==" ref="aef3b62770bdbcb7335fd16871d0651f1" args="(const WDate &amp;other) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#aef3b62770bdbcb7335fd16871d0651f1">operator==</a> (const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares two dates. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abf0fc8e2ec380e2bbf96467283877cf6"></a><!-- doxytag: member="Wt::WDate::operator!=" ref="abf0fc8e2ec380e2bbf96467283877cf6" args="(const WDate &amp;other) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#abf0fc8e2ec380e2bbf96467283877cf6">operator!=</a> (const <a class="el" href="classWt_1_1WDate.html">WDate</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares two dates. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a1d9b6450f5f6126722f07c971ea9e4c0">toString</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Formats this date to a string using a default format.  <a href="#a1d9b6450f5f6126722f07c971ea9e4c0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a2be436babc9c5cb836901f4b2805f7ff">toString</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;format) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Formats this date to a string using a specified format.  <a href="#a2be436babc9c5cb836901f4b2805f7ff"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classWt_1_1WDate.html">WDate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a86383757788870ff2f22bd29536336b7">fromString</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;s)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses a string to a date using a default format.  <a href="#a86383757788870ff2f22bd29536336b7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classWt_1_1WDate.html">WDate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a25e1f637674f18ebb4fa528d107b3d46">fromString</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;s, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;format)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses a string to a date using a specified format.  <a href="#a25e1f637674f18ebb4fa528d107b3d46"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classWt_1_1WDate.html">WDate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a6221e680cd7b1f7d324f1f1932e4a3db">currentDate</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports the current client date.  <a href="#a6221e680cd7b1f7d324f1f1932e4a3db"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classWt_1_1WDate.html">WDate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a57a614e3408f39c70605027fe3e3f3f5">currentServerDate</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports the current server date.  <a href="#a57a614e3408f39c70605027fe3e3f3f5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a995d8ac5936d34f59526c4402b51f459">isLeapYear</a> (int year)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the given year is a leap year.  <a href="#a995d8ac5936d34f59526c4402b51f459"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a342672cb868912660f60bb51ef99c6ca">shortDayName</a> (int weekday, bool localized=true)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the short day name.  <a href="#a342672cb868912660f60bb51ef99c6ca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a1b1ec6bd1312f4259a6be9fc0fb6e73e">shortMonthName</a> (int month, bool localized=true)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the short month name.  <a href="#a1b1ec6bd1312f4259a6be9fc0fb6e73e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#ae5116093b098606acb7cbbeec2134e55">longDayName</a> (int weekday, bool localized=true)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the long day name.  <a href="#ae5116093b098606acb7cbbeec2134e55"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDate.html#a42c593776dfe9feb0befbb2841047ab6">longMonthName</a> (int month, bool localized=true)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the long month name.  <a href="#a42c593776dfe9feb0befbb2841047ab6"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A value class that represents a date on the Gregorian calendar. </p>
<p>Class which holds a date on the gregorian calendar, specified as day/month/year.</p>
<p>A WDate may either specify a valid date, or be a <em>Null</em> date (using the default constructor <a class="el" href="classWt_1_1WDate.html#a88823f7de1cc16e9211015733f15eac3" title="Construct a Null date.">WDate::WDate()</a>, for which <a class="el" href="classWt_1_1WDate.html#aa2d504303dfd4768b6f1ce942fb348be" title="Returns if this date is Null.">isNull()</a> returns <code>true</code>).</p>
<p>A valid date may be specified by year, month, and day of month (using the <a class="el" href="classWt_1_1WDate.html#ae88e64cff5fa3f28283f26fa7c8e4b99">WDate(year, month, day) </a> constructor, or the <a class="el" href="classWt_1_1WDate.html#ad9f497db41a525c9955aa6c45fa9a692" title="Sets the date by year, month, and day.">setDate()</a> method). When attempting to specify an invalid date (with an impossible combination of year/month/date), isIvalid() will return <code>false</code>.</p>
<p>The class provides a flexible way for converting between strings and dates. Use <a class="el" href="classWt_1_1WDate.html#a1d9b6450f5f6126722f07c971ea9e4c0" title="Formats this date to a string using a default format.">toString()</a> to convert to strings, and <a class="el" href="classWt_1_1WDate.html#a86383757788870ff2f22bd29536336b7" title="Parses a string to a date using a default format.">fromString()</a> for parsing strings. Both methods take a format string, and the same format syntax is supported by both methods.</p>
<p>Simple operations are supported to compare dates, or to calculate with dates. These operations throw <a class="el" href="classWt_1_1InvalidDateException.html" title="Exception thrown when calculating with an invalid date.">InvalidDateException</a> when one of the dates is invalid.</p>
<h3>i18n</h3>
<p>If the thread using a <a class="el" href="classWt_1_1WDate.html" title="A value class that represents a date on the Gregorian calendar.">WDate</a> is bound to a <a class="el" href="classWt_1_1WApplication.html" title="Represents an application instance for a single session.">WApplication</a> (i.e. <a class="el" href="classWt_1_1WApplication.html#a38d922da0a0d83395519f3eaab85d0f6" title="Returns the current application instance.">WApplication::instance()</a> does not return 0), the date strings can be localized by overriding the default values for the localized string keys in the resource bundles of the <a class="el" href="classWt_1_1WApplication.html" title="Represents an application instance for a single session.">WApplication</a>:</p>
<ul>
<li>Short day names: Wt.WDate.Mon through Wt.WDate.Sun</li>
<li>Long day names: Wt.WDate.Monday through Wt.WDate.Sunday</li>
<li>Short month names: Wt.WDate.Jan through Wt.WDate.Dec</li>
<li>Long month names: Wt.WDate.January through Wt.WDate.December</li>
</ul>
<p>If the thread using a <a class="el" href="classWt_1_1WDate.html" title="A value class that represents a date on the Gregorian calendar.">WDate</a> is not bound to a <a class="el" href="classWt_1_1WApplication.html" title="Represents an application instance for a single session.">WApplication</a> (i.e. <a class="el" href="classWt_1_1WApplication.html#a38d922da0a0d83395519f3eaab85d0f6" title="Returns the current application instance.">WApplication::instance()</a> returns 0), english strings will be used.</p>
<p>Internationalization affects both <a class="el" href="classWt_1_1WDate.html" title="A value class that represents a date on the Gregorian calendar.">WDate</a> to string conversions and string to <a class="el" href="classWt_1_1WDate.html" title="A value class that represents a date on the Gregorian calendar.">WDate</a> conversion. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a88823f7de1cc16e9211015733f15eac3"></a><!-- doxytag: member="Wt::WDate::WDate" ref="a88823f7de1cc16e9211015733f15eac3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WDate::WDate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <em>Null</em> date. </p>
<p>A date for which <a class="el" href="classWt_1_1WDate.html#aa2d504303dfd4768b6f1ce942fb348be" title="Returns if this date is Null.">isNull()</a> returns <code>true</code>. A <code>Null</code> date is also invalid.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#a6e7f68474aa2fd9570cede81c85f6e3a" title="Returns if this date is valid.">isValid()</a>, <a class="el" href="classWt_1_1WDate.html#aa2d504303dfd4768b6f1ce942fb348be" title="Returns if this date is Null.">isNull()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae88e64cff5fa3f28283f26fa7c8e4b99"></a><!-- doxytag: member="Wt::WDate::WDate" ref="ae88e64cff5fa3f28283f26fa7c8e4b99" args="(int year, int month, int day)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WDate::WDate </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>day</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Specify a date by year, month, and day. </p>
<p>The <code>month</code> has range 1-12 and the <code>day</code> has range 1-31. When the date is invalid, <a class="el" href="classWt_1_1WDate.html#a6e7f68474aa2fd9570cede81c85f6e3a" title="Returns if this date is valid.">isValid()</a> is set to <code>false</code>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#ad9f497db41a525c9955aa6c45fa9a692" title="Sets the date by year, month, and day.">setDate()</a>, <a class="el" href="classWt_1_1WDate.html#a69b9c1a505490006774614a3b5a402f0" title="Returns the year.">year()</a>, <a class="el" href="classWt_1_1WDate.html#a9eb0594dde9b3c92ecf66d399558dd81" title="Returns the month (1-12).">month()</a>, <a class="el" href="classWt_1_1WDate.html#a7e0d6855b08d7293e55c9929ec7737ca" title="Returns the day of month (1-31).">day()</a> </dd></dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a55c4709c6cec54f8dd3e69355381630f"></a><!-- doxytag: member="Wt::WDate::addDays" ref="a55c4709c6cec54f8dd3e69355381630f" args="(int ndays) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WDate.html">WDate</a> Wt::WDate::addDays </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ndays</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds days. </p>
<p>Returns a date that is <code>ndays</code> later than this date. Negative values for <code>ndays</code> will result in a date that is as many days earlier.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#ad85d82a3aa5c2613550e9cf52983d66b" title="Adds months.">addMonths()</a>, <a class="el" href="classWt_1_1WDate.html#a60915b6de93a109dccbcaa589890370e" title="Adds years.">addYears()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad85d82a3aa5c2613550e9cf52983d66b"></a><!-- doxytag: member="Wt::WDate::addMonths" ref="ad85d82a3aa5c2613550e9cf52983d66b" args="(int nmonths) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WDate.html">WDate</a> Wt::WDate::addMonths </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nmonths</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds months. </p>
<p>Returns a date that is the same day of the month, but <code>nmonths</code> later than this date. Negative values for <code>nmonths</code> will result in a date that is as many months earlier.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#a55c4709c6cec54f8dd3e69355381630f" title="Adds days.">addDays()</a>, <a class="el" href="classWt_1_1WDate.html#a60915b6de93a109dccbcaa589890370e" title="Adds years.">addYears()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a60915b6de93a109dccbcaa589890370e"></a><!-- doxytag: member="Wt::WDate::addYears" ref="a60915b6de93a109dccbcaa589890370e" args="(int nyears) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WDate.html">WDate</a> Wt::WDate::addYears </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nyears</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds years. </p>
<p>Returns a date that is <code>nyears</code> later than this date. Negative values for <code>nyears</code> will result in a date that is as many years earlier.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#a55c4709c6cec54f8dd3e69355381630f" title="Adds days.">addDays()</a>, <a class="el" href="classWt_1_1WDate.html#ad85d82a3aa5c2613550e9cf52983d66b" title="Adds months.">addMonths()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a6221e680cd7b1f7d324f1f1932e4a3db"></a><!-- doxytag: member="Wt::WDate::currentDate" ref="a6221e680cd7b1f7d324f1f1932e4a3db" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WDate.html">WDate</a> Wt::WDate::currentDate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reports the current client date. </p>
<p>This method uses browser information to retrieve the date that is configured in the client.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>Not Yet Implemented ! </dd></dl>

</div>
</div>
<a class="anchor" id="a57a614e3408f39c70605027fe3e3f3f5"></a><!-- doxytag: member="Wt::WDate::currentServerDate" ref="a57a614e3408f39c70605027fe3e3f3f5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WDate.html">WDate</a> Wt::WDate::currentServerDate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reports the current server date. </p>
<p>This method returns the date as indicated by the system clock of the server. </p>

</div>
</div>
<a class="anchor" id="a933d7b11edbbc207dfe0baaabeeceb57"></a><!-- doxytag: member="Wt::WDate::dayOfWeek" ref="a933d7b11edbbc207dfe0baaabeeceb57" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WDate::dayOfWeek </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the day of week (1-7). </p>
<p>Returns the day of week, from Monday (=1) to Sunday (=7). </p>

</div>
</div>
<a class="anchor" id="a86383757788870ff2f22bd29536336b7"></a><!-- doxytag: member="Wt::WDate::fromString" ref="a86383757788870ff2f22bd29536336b7" args="(const WString &amp;s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WDate.html">WDate</a> Wt::WDate::fromString </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses a string to a date using a default format. </p>
<p>The default <code>format</code> is "ddd MMM d yyyy". For example, a date specified as: </p>
<div class="fragment"><pre class="fragment">   <span class="stringliteral">&quot;Wed Aug 29 2007&quot;</span>
</pre></div><p> will be parsed as a date that equals a date constructed as: </p>
<div class="fragment"><pre class="fragment">   <a class="code" href="classWt_1_1WDate.html#a88823f7de1cc16e9211015733f15eac3" title="Construct a Null date.">WDate</a> d(2007,8,29);
</pre></div><p>When the date could not be parsed or is not valid, an invalid date is returned (for which <a class="el" href="classWt_1_1WDate.html#a6e7f68474aa2fd9570cede81c85f6e3a" title="Returns if this date is valid.">isValid()</a> returns false).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#a25e1f637674f18ebb4fa528d107b3d46" title="Parses a string to a date using a specified format.">fromString(const WString&amp; s, const WString&amp; format)</a>, <a class="el" href="classWt_1_1WDate.html#a6e7f68474aa2fd9570cede81c85f6e3a" title="Returns if this date is valid.">isValid()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a25e1f637674f18ebb4fa528d107b3d46"></a><!-- doxytag: member="Wt::WDate::fromString" ref="a25e1f637674f18ebb4fa528d107b3d46" args="(const WString &amp;s, const WString &amp;format)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WDate.html">WDate</a> Wt::WDate::fromString </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses a string to a date using a specified format. </p>
<p>The <code>format</code> follows the same syntax as used by <a class="el" href="classWt_1_1WDate.html#a2be436babc9c5cb836901f4b2805f7ff">toString(const WString&amp; format)</a>.</p>
<p>When the date could not be parsed or is not valid, an invalid date is returned (for which <a class="el" href="classWt_1_1WDate.html#a6e7f68474aa2fd9570cede81c85f6e3a" title="Returns if this date is valid.">isValid()</a> returns false).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#a2be436babc9c5cb836901f4b2805f7ff" title="Formats this date to a string using a specified format.">toString(const WString&amp;) const</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a995d8ac5936d34f59526c4402b51f459"></a><!-- doxytag: member="Wt::WDate::isLeapYear" ref="a995d8ac5936d34f59526c4402b51f459" args="(int year)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WDate::isLeapYear </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether the given year is a leap year. </p>
<p>A leap year has 29 days in February, in case you wondered. </p>

</div>
</div>
<a class="anchor" id="aa2d504303dfd4768b6f1ce942fb348be"></a><!-- doxytag: member="Wt::WDate::isNull" ref="aa2d504303dfd4768b6f1ce942fb348be" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WDate::isNull </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns if this date is <em>Null</em>. </p>
<p>A null date is also invalid.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#a6e7f68474aa2fd9570cede81c85f6e3a" title="Returns if this date is valid.">isValid()</a>, <a class="el" href="classWt_1_1WDate.html#a88823f7de1cc16e9211015733f15eac3" title="Construct a Null date.">WDate()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a6e7f68474aa2fd9570cede81c85f6e3a"></a><!-- doxytag: member="Wt::WDate::isValid" ref="a6e7f68474aa2fd9570cede81c85f6e3a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WDate::isValid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns if this date is valid. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#aa2d504303dfd4768b6f1ce942fb348be" title="Returns if this date is Null.">isNull()</a>, <a class="el" href="classWt_1_1WDate.html#ae88e64cff5fa3f28283f26fa7c8e4b99" title="Specify a date by year, month, and day.">WDate(int, int, int)</a>, <a class="el" href="classWt_1_1WDate.html#ad9f497db41a525c9955aa6c45fa9a692" title="Sets the date by year, month, and day.">setDate()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae5116093b098606acb7cbbeec2134e55"></a><!-- doxytag: member="Wt::WDate::longDayName" ref="ae5116093b098606acb7cbbeec2134e55" args="(int weekday, bool localized=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WDate::longDayName </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>weekday</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>localized</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the long day name. </p>
<p>Results (for given <code>weekDay</code>) are (default English):<br/>
 "Monday" (1),<br/>
 "Tuesday" (2),<br/>
 "Wednesday" (3),<br/>
 "Thursday" (4),<br/>
 "Friday" (5),<br/>
 "Saturday" (6),<br/>
 "Sunday" (7).</p>
<p>The result is affected by localization using the "Wt.WDate.Monday" to "Wt.WDate.Sunday" keys.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#a342672cb868912660f60bb51ef99c6ca" title="Returns the short day name.">shortDayName()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a42c593776dfe9feb0befbb2841047ab6"></a><!-- doxytag: member="Wt::WDate::longMonthName" ref="a42c593776dfe9feb0befbb2841047ab6" args="(int month, bool localized=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WDate::longMonthName </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>localized</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the long month name. </p>
<p>Results (for given <code>month</code>) are (default English):<br/>
 "January" (1),<br/>
 "February" (2),<br/>
 "March" (3),<br/>
 "April" (4),<br/>
 "May" (5),<br/>
 "June" (6),<br/>
 "July" (7),<br/>
 "August" (8),<br/>
 "September" (9),<br/>
 "October" (10),<br/>
 "November" (11),<br/>
 "December" (12).</p>
<p>The result is affected by localization using the "Wt.WDate.January" to "Wt.WDate.December" keys.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#a342672cb868912660f60bb51ef99c6ca" title="Returns the short day name.">shortDayName()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad9f497db41a525c9955aa6c45fa9a692"></a><!-- doxytag: member="Wt::WDate::setDate" ref="ad9f497db41a525c9955aa6c45fa9a692" args="(int year, int month, int day)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WDate::setDate </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>day</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the date by year, month, and day. </p>
<p>The <code>month</code> has range 1-12 and the <code>day</code> has range 1-31. When the new date is invalid, <a class="el" href="classWt_1_1WDate.html#a6e7f68474aa2fd9570cede81c85f6e3a" title="Returns if this date is valid.">isValid()</a> is set to <code>false</code>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#ae88e64cff5fa3f28283f26fa7c8e4b99" title="Specify a date by year, month, and day.">WDate(int year, int month, int day)</a>, <a class="el" href="classWt_1_1WDate.html#a69b9c1a505490006774614a3b5a402f0" title="Returns the year.">year()</a>, <a class="el" href="classWt_1_1WDate.html#a9eb0594dde9b3c92ecf66d399558dd81" title="Returns the month (1-12).">month()</a>, <a class="el" href="classWt_1_1WDate.html#a7e0d6855b08d7293e55c9929ec7737ca" title="Returns the day of month (1-31).">day()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a342672cb868912660f60bb51ef99c6ca"></a><!-- doxytag: member="Wt::WDate::shortDayName" ref="a342672cb868912660f60bb51ef99c6ca" args="(int weekday, bool localized=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WDate::shortDayName </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>weekday</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>localized</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the short day name. </p>
<p>Results (for given <code>weekDay</code>) are (default English):<br/>
 "Mon" (1),<br/>
 "Tue" (2),<br/>
 "Wed" (3),<br/>
 "Thu" (4),<br/>
 "Fri" (5),<br/>
 "Sat" (6),<br/>
 "Sun" (7).</p>
<p>The result is affected by localization using the "Wt.WDate.Mon" to "Wt.WDate.Sun" keys.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#ae5116093b098606acb7cbbeec2134e55" title="Returns the long day name.">longDayName()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1b1ec6bd1312f4259a6be9fc0fb6e73e"></a><!-- doxytag: member="Wt::WDate::shortMonthName" ref="a1b1ec6bd1312f4259a6be9fc0fb6e73e" args="(int month, bool localized=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WDate::shortMonthName </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>localized</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the short month name. </p>
<p>Results (for given <code>month</code>) are (default English):<br/>
 "Jan" (1),<br/>
 "Feb" (2),<br/>
 "Mar" (3),<br/>
 "Apr" (4),<br/>
 "May" (5),<br/>
 "Jun" (6),<br/>
 "Jul" (7),<br/>
 "Aug" (8),<br/>
 "Sep" (9),<br/>
 "Oct" (10),<br/>
 "Nov" (11),<br/>
 "Dec" (12)<br/>
.</p>
<p>The result is affected by localization using the "Wt.WDate.Jan" to "Wt.WDate.Dec" keys.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#a42c593776dfe9feb0befbb2841047ab6" title="Returns the long month name.">longMonthName()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="acee5169b63142a6543dc0bb709303769"></a><!-- doxytag: member="Wt::WDate::toJulianDay" ref="acee5169b63142a6543dc0bb709303769" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WDate::toJulianDay </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts the date to a Julian day. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>fromJulianDay() </dd></dl>

</div>
</div>
<a class="anchor" id="a1d9b6450f5f6126722f07c971ea9e4c0"></a><!-- doxytag: member="Wt::WDate::toString" ref="a1d9b6450f5f6126722f07c971ea9e4c0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WDate::toString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Formats this date to a string using a default format. </p>
<p>The default <code>format</code> is "ddd MMM d yyyy". For example, a date constructed as: </p>
<div class="fragment"><pre class="fragment">   <a class="code" href="classWt_1_1WDate.html#a88823f7de1cc16e9211015733f15eac3" title="Construct a Null date.">WDate</a> d(2007,8,29);
</pre></div><p> will be formatted as: </p>
<div class="fragment"><pre class="fragment">   <span class="stringliteral">&quot;Wed Aug 29 2007&quot;</span>
</pre></div><dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#a2be436babc9c5cb836901f4b2805f7ff" title="Formats this date to a string using a specified format.">toString(const WString&amp; format) const</a>, <a class="el" href="classWt_1_1WDate.html#a86383757788870ff2f22bd29536336b7" title="Parses a string to a date using a default format.">fromString()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a2be436babc9c5cb836901f4b2805f7ff"></a><!-- doxytag: member="Wt::WDate::toString" ref="a2be436babc9c5cb836901f4b2805f7ff" args="(const WString &amp;format) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WDate::toString </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>format</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Formats this date to a string using a specified format. </p>
<p>The <code>format</code> is a string in which the following contents has a special meaning.</p>
<table class="doxtable">
<tr>
<td><b>Code</b></td><td><b>Meaning</b> </td><td><b>Example (for Mon Aug 3 2007)</b> </td></tr>
<tr>
<td>d</td><td>The day without leading zero (1-31) </td><td>3 </td></tr>
<tr>
<td>dd</td><td>The day with leading zero (01-31) </td><td>03 </td></tr>
<tr>
<td>ddd</td><td>The day abbreviated using <a class="el" href="classWt_1_1WDate.html#a342672cb868912660f60bb51ef99c6ca" title="Returns the short day name.">shortDayName()</a> </td><td>Mon </td></tr>
<tr>
<td>dddd</td><td>The day abbreviated using <a class="el" href="classWt_1_1WDate.html#ae5116093b098606acb7cbbeec2134e55" title="Returns the long day name.">longDayName()</a> </td><td>Monday </td></tr>
<tr>
<td>M</td><td>The month without leading zero (1-12) </td><td>8 </td></tr>
<tr>
<td>MM</td><td>The month with leading zero (01-12) </td><td>08 </td></tr>
<tr>
<td>MMM</td><td>The month abbreviated using <a class="el" href="classWt_1_1WDate.html#a1b1ec6bd1312f4259a6be9fc0fb6e73e" title="Returns the short month name.">shortMonthName()</a> </td><td>Aug </td></tr>
<tr>
<td>MMMM</td><td>The month abbreviated using <a class="el" href="classWt_1_1WDate.html#a42c593776dfe9feb0befbb2841047ab6" title="Returns the long month name.">longMonthName()</a> </td><td>August </td></tr>
<tr>
<td>yy</td><td>The year as a two-digit number (00-99) </td><td>07 </td></tr>
<tr>
<td>yyyy</td><td>The year as a four-digit number (-9999-9999) </td><td>2007 </td></tr>
</table>
<p>Any other text is kept literally. String content between single quotes (') are not interpreted as special codes. Inside a string, a literal quote may be specifed using a double quote ('').</p>
<p>Examples of format and result: </p>
<table class="doxtable">
<tr>
<td><b>Format</b></td><td><b>Result (for Mon Aug 3 2007)</b> </td></tr>
<tr>
<td>ddd MMM d yyyy</td><td>Mon Aug 3 2007 </td></tr>
<tr>
<td>dd/MM/yyyy</td><td>03/08/2007 </td></tr>
<tr>
<td>dddd, MMM d, yyyy</td><td>Wednesday, Aug 3, 2007 </td></tr>
<tr>
<td>'MM': MM, 'd': d, 'yyyy': yyyy</td><td>MM: 08, d: 3, yyyy: 2007 </td></tr>
</table>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDate.html#a25e1f637674f18ebb4fa528d107b3d46" title="Parses a string to a date using a specified format.">fromString(const WString&amp; value, const WString&amp; format)</a> </dd></dl>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>